Description
reference (not read yet)
Vogelsang, Timothy J. 2012. “Heteroskedasticity, Autocorrelation, and Spatial Correlation Robust Inference in Linear Panel Models with Fixed-effects.” Journal of Econometrics 166 (2) (February): 303–319. doi:10.1016/j.jeconom.2011.10.001.
This combines heteroscedasticity, autocorrelation, cluster and spatial correlation robustness.
I made some notes in the code, but only allow one kernel dimension (HAC Newey West type), IIRC.
pysal has gmm with Kelejian and Prucha.
GEE PR allows for multidimensional "time" index that can also be used for spatial correlation, based on a distance function.
Also AFAIR, I don't have different kernels implemented. See for example Andrews Econometrica 1991
Recently popular: flat-top kernels. e.g Politis IIRC ?
Vogelsang 2012 has a good overview of underlying assumptions for the different versions.
Vogelsang's analysis uses large T asymptotics, t -> inf, n fixed or also n -> inf
references C. B. Hansen 2007 for the extension of fixed T, large n panel/cluster robust covariance to the large T case.
I didn't see anything in Vogelsang for two or multi cluster robust standard errors.
That should be robust to within (time-auto-) correlation and to cross-sectional/spatial correlation. (do we need both n -> inf and T -> inf ? )
Do we always need a HAC/kernel weighting in the large dimension (n or T -> inf)?
see CB Hansen 2007 for this
n->inf, T->inf cluster robust cov (Arellano) only converges with sqrt(n) in general, with strong mixing converges with sqrt(nT)
n fixed, T->inf: not a standard distribution because there is no truncation/kernel for HAC for within cluster autocorrelation.
one problem with Vogelsang's fixed-b asymptotic is that it has non-standard distribution for p-values.
The difficulty in the model assumption is the presence of fixed effects and time dummies. (in Vogelsang.)
(There are several other github issues to improve robust cov and sandwiches.)
aside: scikit-learn has distance based (auto)correlation for Gaussian Processes.
Activity
josef-pkt commentedon Oct 3, 2013
for pure cluster robust standard errrors
Bootstrap-Based Improvements for Inference with Clustered Errors
A. Colin Cameron, Jonah B. Gelbach, and Douglas L. Miller
Review of Economics and Statistics 2008 90:3, 414-427
http://www.mitpressjournals.org/doi/abs/10.1162/rest.90.3.414
They also reference papers for the cluster equivalent of HC2 and HC3, named CR2, CR3
CR3 is related (a multiple ?) of Mandl and DeRosen in GEE pull request.
separate related issue:
Bootstrap for inference - directly calculate t-statistic or f-statistic and p-values for it. (for Wald tests)
josef-pkt commentedon Jan 5, 2023
I wrote the original sandwich code in 2013.
Needs some updating and catching up with recent literature
e.g. R has now (since 2020, I was seven years faster :) CR2 and CR3, plus references to more recent panel cov_type literature
Zeileis, Achim, Susanne Köll, and Nathaniel Graham. “Various Versatile Variances: An Object-Oriented Implementation of Clustered Covariances in R.” Journal of Statistical Software 95 (October 7, 2020): 1–36. https://doi.org/10.18637/jss.v095.i01.
they don't have the CR jackknife version
josef-pkt commentedon Jan 5, 2023
another new article (besides the CR-jackknife articles)
Niccodemi, Gianmaria, and Tom Wansbeek. “A New Estimator for Standard Errors with Few Unbalanced Clusters.” Econometrics 10, no. 1 (March 2022): 6. https://doi.org/10.3390/econometrics10010006.
josef-pkt commentedon Jan 7, 2023
another one to look at
includes section on absorption, and has "model-assisted" degrees of freedom (equ. 11)
I only skimmed a few parts.
Similar to GEE with working correlation matrix for linear regression model, but references mainly econometrics literature and not GEE statistics literature (AFAICS)
Pustejovsky, James E., and Elizabeth Tipton. “Small-Sample Methods for Cluster-Robust Variance Estimation and Hypothesis Testing in Fixed Effects Models.” Journal of Business & Economic Statistics 36, no. 4 (October 2, 2018): 672–83. https://doi.org/10.1080/07350015.2016.1247004.