| vcov.snreg | R Documentation |
vcov.snreg is the vcov S3 method for objects of class "snreg".
It returns the model-based variance-covariance matrix stored in the fitted object.
## S3 method for class 'snreg'
vcov(object, ...)
object |
an object of class |
... |
additional arguments (currently unused). |
Variance-Covariance Matrix for snreg Objects
This method expects a fitted "snreg" object.
This method simply returns the vcov component stored in object.
If your estimator did not compute standard errors (e.g., because estimation
hasn’t been run yet in a scaffold), this field may be NULL, and the
method will error accordingly.
A numeric matrix containing the variance-covariance of the estimated parameters.
snsf, snreg, lm.mle, coef.snreg, residuals.snreg
library(snreg)
data("banks07")
head(banks07)
# Translog cost function specification
spe.tl <- log(TC) ~ (log(Y1) + log(Y2) + log(W1) + log(W2))^2 +
I(0.5 * log(Y1)^2) + I(0.5 * log(Y2)^2) +
I(0.5 * log(W1)^2) + I(0.5 * log(W2)^2)
# Specification 1: homoskedastic noise and skewness
# Specification 1: homoskedastic noise, skewness, inefficiency
formSV <- NULL #' variance equation; constant variance
formSK <- NULL #' skewness equation; constant skewness
m1 <- snreg(
formula = spe.tl,
data = banks07,
ln.var.v = formSV,
skew.v = formSK
)
vcov(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.