momentVcov-methods: ~~ Methods for Function 'momentVcov' in Package 'Gmm' ~~

Description Methods Examples

Description

It computes the estimated covariance matrix of the moment conditions based on the it is defined in the "gmmModels" class object.

Methods

signature(object = "gmmModels")
signature(object = "gelModels")
signature(object = "sysGmmModels")

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(simData)

theta <- c(beta0=1,beta1=2)
model1 <- gmmModel(y~x1, ~z1+z2, data=simData)
momentVcov(model1, theta)[,]

model2 <- gmmModel(y~x1, ~z1+z2, data=simData, vcov="iid")
momentVcov(model2, theta)

model3 <- gmmModel(y~x1, ~z1+z2, data=simData, vcov="MDS")
momentVcov(model3, theta)

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