Enrico:
for the sake of precision, the same source (page 29) states that -vce(cluster clusterid)- standard errors "...allows arbitary correlations of disturbances within clusters as well as arbitrary heteroskedasticity across clusters."
As expected, there's no difference between standard errors calculated via -newey- or -vce(cluster clusterid)- as we have -lag(0)- in (one wave) cross-sectional dataset:
for the sake of precision, the same source (page 29) states that -vce(cluster clusterid)- standard errors "...allows arbitary correlations of disturbances within clusters as well as arbitrary heteroskedasticity across clusters."
As expected, there's no difference between standard errors calculated via -newey- or -vce(cluster clusterid)- as we have -lag(0)- in (one wave) cross-sectional dataset:
Code:
ysuse auto.dta . g id=_n . g time=1 . tsset id time Panel variable: id (strongly balanced) Time variable: time, 1 to 1 Delta: 1 unit . newey price mpg, lag(0) Regression with Newey–West standard errors Number of obs = 74 Maximum lag = 0 F( 1, 72) = 17.28 Prob > F = 0.0001 ------------------------------------------------------------------------------ | Newey–West price | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- mpg | -238.8943 57.47701 -4.16 0.000 -353.4727 -124.316 _cons | 11253.06 1376.393 8.18 0.000 8509.272 13996.85 ------------------------------------------------------------------------------ . regress price mpg, vce(cluster id) Linear regression Number of obs = 74 F(1, 73) = 17.28 Prob > F = 0.0001 R-squared = 0.2196 Root MSE = 2623.7 (Std. err. adjusted for 74 clusters in id) ------------------------------------------------------------------------------ | Robust price | Coefficient std. err. t P>|t| [95% conf. interval] -------------+---------------------------------------------------------------- mpg | -238.8943 57.47701 -4.16 0.000 -353.4459 -124.3428 _cons | 11253.06 1376.393 8.18 0.000 8509.914 13996.21 ------------------------------------------------------------------------------ .
Comment