vcov | R Documentation |
vcov
computes the variance-covariance matrix of the maximum likelihood (ML)
coefficients of classic or latent class stochastic frontier models estimated by
sfacross
or lcmcross
.
## S3 method for class 'sfacross' vcov(object, extraPar = FALSE, ...) ## S3 method for class 'lcmcross' vcov(object, ...)
object |
A classic or latent class stochastic frontier model
returned by |
extraPar |
Logical. Only available for non heteroscedastic models
returned by
|
... |
Currently ignored |
The variance-covariance matrix is obtained by the inversion of the
negative Hessian matrix. Depending on the distribution and the
"hessianType"
option, the analytical/numeric Hessian or the bhhh
Hessian or the robust Hessian matrix is evaluated.
The argument extraPar
, is currently available for objects of class 'sfacross'
.
When "extraPar = TRUE"
, the variance-covariance of the additional
parameters is obtained using the delta method.
The variance-covariance matrix of the maximum likelihood coefficients is returned.
K Hervé Dakpo, Yann Desjeux and Laure Latruffe
sfacross
, for the stochastic frontier analysis model fitting function.
lcmcross
, for the latent class stochastic frontier analysis model fitting function.
## Using data on Spanish dairy farms # Cobb Douglas (production function) half normal distribution cb_s_h <- sfacross(formula = YIT ~ X1 + X2 + X3 + X4, udist = "hnormal", data = dairyspain, S = 1, method = "bfgs") vcov(cb_s_h) vcov(cb_s_h, extraPar = TRUE) ## Using data on eighty-two countries production (DGP) # LCM Cobb Douglas (production function) half normal distribution cb_2c_h <- lcmcross(formula = ly ~ lk + ll + yr, udist = "hnormal", data = worldprod, uhet = ~ initStat, S = 1) vcov(cb_2c_h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.