vcovHAC-methods: ~~ Methods for Function 'vcovHAC' in Package 'sandwich' ~~

Description Methods Examples

Description

Methods to compute the HAC covariance matrix of the moment matrix ~~

Methods

signature(x = "gmmModels")

Examples

1
2
3
4
5
6
7
8
9
data(simData)
theta <- c(beta0=1,beta1=2)
model1 <- gmmModel(y~x1, ~z1+z2, data=simData)

# a warning is given if the model is not set as being HAC
vcovHAC(model1, theta)

model1 <- gmmModel(y~x1, ~z1+z2, data=simData, vcov="HAC",vcovOptions=list(kernel="B"))
vcovHAC(model1, theta)

gmm4 documentation built on Dec. 6, 2019, 3:01 a.m.