Covariance of a paniv fit
Usage
# S3 method for class 'paniv'
vcov(object, type = NULL, cluster = NULL, ...)See also
Other paniv methods:
plot.pangmm(),
predict.paniv(),
summary.paniv()
Examples
set.seed(2)
d <- data.frame(id = rep(1:50, each = 4), t = rep(1:4, 50))
d$z <- rnorm(200); d$u <- rnorm(200)
d$x <- d$z + d$u + rnorm(200); d$y <- 1 + d$x + d$u + rnorm(200)
fit <- paniv(y ~ x | z, data = d, index = c("id", "t"), model = "pooling")
vcov(fit, type = "cluster")
#> (Intercept) x
#> (Intercept) 0.006622603 -0.001131347
#> x -0.001131347 0.004784531