newey.west.glm(glm.obj, times, lag=NULL, clag=NULL) kernelvar.glm(glm.obj,times, lag=NULL,clag=NULL, kernel=c("tukey","bartlett","parzen")) weightvar.glm(glm.obj,times,weights)
glm.obj
| Generalised linear model object |
times
| Times at which responses were observed |
lag
| truncation lag for weighting the variance estimator |
clag
| tuning constant for asymptotically optimal lag |
kernel
| weighting function to use |
weights
| vector of weights for variance estimator |
clag
is of the order of 1 (rather than 0.001 or 1000). An arbitrary vector of weights may be specified in the weightvar.glm
function.
These estimators have been improved by the addition of a bias correction and an approximate denominator degrees of freedom for test and confidence interval construction.
var
| estimated covariance matrix without bias correction |
bias.correction
| multiplicative bias correction |
df
| Approximate denominator degrees of freedom |
Andrews (1991) "Heteroskedasticity and Autocorrelation Consistent Covariance Matrix Estimation" Econometrica 59:59;817-858
Lumley and Heagerty (in press) "Weighted Empirical Adaptive Variance Estimators for Correlated Data Regression" JRSSB
weave.trunc
,weave.smooth