扩展 xtscc 命令输出中的小数点位数
Expanding the number of decimal points in the output of the xtscc command
我正在使用 community-contributed Stata 命令 xtscc
我需要报告带 4
小数点的 p 值。
在 regress
命令中包含 pformat()
选项有效:
regress y x, pformat(%5.4f)
但是,当我将其包含在 xtscc
命令中时,会导致错误:
xtscc y x, pformat(%5.4f)
option pformat() not allowed
r(198);
如何在使用 xtscc
命令时产生相同的输出?
xtscc
命令没有这样的选项,但下面的命令是一样的:
webuse grunfeld, clear
estimates clear
xtscc invest mvalue kstock, fe lag(4)
Regression with Driscoll-Kraay standard errors Number of obs = 200
Method: Fixed-effects regression Number of groups = 10
Group variable (i): company F( 2, 9) = 84.69
maximum lag: 4 Prob > F = 0.0000
within R-squared = 0.7668
------------------------------------------------------------------------------
| Drisc/Kraay
invest | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
mvalue | .1101238 .0195826 5.62 0.000 .0658249 .1544227
kstock | .3100653 .0330158 9.39 0.000 .2353784 .3847523
_cons | -58.74393 23.71437 -2.48 0.035 -112.3896 -5.098296
------------------------------------------------------------------------------
estimates store m1
estimates table m1, b se p(%5.4f)
---------------------------
Variable | m1
-------------+-------------
mvalue | .1101238
| .01958261
| 0.0003
kstock | .31006534
| .03301581
| 0.0000
_cons | -58.743932
| 23.714371
| 0.0352
---------------------------
legend: b/se/p
我正在使用 community-contributed Stata 命令 xtscc
我需要报告带 4
小数点的 p 值。
在 regress
命令中包含 pformat()
选项有效:
regress y x, pformat(%5.4f)
但是,当我将其包含在 xtscc
命令中时,会导致错误:
xtscc y x, pformat(%5.4f)
option pformat() not allowed
r(198);
如何在使用 xtscc
命令时产生相同的输出?
xtscc
命令没有这样的选项,但下面的命令是一样的:
webuse grunfeld, clear
estimates clear
xtscc invest mvalue kstock, fe lag(4)
Regression with Driscoll-Kraay standard errors Number of obs = 200
Method: Fixed-effects regression Number of groups = 10
Group variable (i): company F( 2, 9) = 84.69
maximum lag: 4 Prob > F = 0.0000
within R-squared = 0.7668
------------------------------------------------------------------------------
| Drisc/Kraay
invest | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
mvalue | .1101238 .0195826 5.62 0.000 .0658249 .1544227
kstock | .3100653 .0330158 9.39 0.000 .2353784 .3847523
_cons | -58.74393 23.71437 -2.48 0.035 -112.3896 -5.098296
------------------------------------------------------------------------------
estimates store m1
estimates table m1, b se p(%5.4f)
---------------------------
Variable | m1
-------------+-------------
mvalue | .1101238
| .01958261
| 0.0003
kstock | .31006534
| .03301581
| 0.0000
_cons | -58.743932
| 23.714371
| 0.0352
---------------------------
legend: b/se/p