Econometric time series variance estimators for glms

Usage

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)

Arguments

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

Description

These functions construct weighted information sandwich variance estimators for generalised linear models fitted to time series data. These arose in the econometrics literature as estimators for misspecified Gaussian regression models. All these estimators work by weighting the middle term in the information sandwich to ignore correlations beyond a certain lag. Asymptotic theory suggests that the optimal lag is a multiple of a power of the sample size, with the power depending on the weight function. The lag may be specified explicitly or the multiplying constant may be given. In the only case for which explicit values are known, the optimal constant 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.

Value

var estimated covariance matrix without bias correction
bias.correction multiplicative bias correction
df Approximate denominator degrees of freedom

Author(s)

Thomas Lumley

References

Newey and West (1987) "A simple, positive definite, heteroskedasticity and autocorrelation consistent covariance matrix." Econometrica 55:3;703-708.

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

See Also

weave.trunc,weave.smooth

Examples