Covariance extractor method for splm objects
Covariance extractor method for splm
objects. Seldom used as
such but needed, e.g., for
interoperability with testing functions in lmtest and car.
## S3 method for class 'splm' vcov(object, ...)
object |
an object of class |
... |
additional arguments to be passed; currently not used |
a covariance matrix of beta coefficients
Giovanni Millo
Zeileis, A. (2006) Object-Oriented Computation of Sandwich Estimators. Journal of Statistical Software, 16(9), 1-16.
## not run: ## data(Produc, package="plm") ## data(usaww) ## fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp ## sarremod <- spml(fm, data=Produc, listw = mat2listw(usaww), ## model="random", lag=TRUE, spatial.error="none") ## ## compact representation of betas ## library(lmtest) ## coeftest(sarremod) ## ## linear hypothesis test ## library(car) ## lht(sarremod, "log(pcap)=log(pc)")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.