| vcov.metafrontier | R Documentation |
Returns the variance-covariance matrix of the Stage 2
(metafrontier) coefficients, or, with which = "group", the
per-group matrices from the Stage 1 maximum likelihood fits.
NULL is returned when no Stage 2 Hessian exists: the
deterministic metafrontier is fitted by LP/QP optimisation and has
no sampling variance in this framework, so which = "meta"
returns NULL with a warning; with which = "group",
list entries are NULL for groups without a stored Hessian
(e.g. externally fitted models). DEA-based metafrontiers are
nonparametric and vcov() signals an error; use
boot_tgr for inference instead.
## S3 method for class 'metafrontier'
vcov(
object,
correction = c("none", "murphy-topel"),
which = c("meta", "group"),
extraPar = FALSE,
...
)
object |
a |
correction |
character. |
which |
character. |
extraPar |
logical. If |
... |
additional arguments (currently unused). |
A variance-covariance matrix (which = "meta"), a
named list of matrices (which = "group"), or NULL
if unavailable.
Murphy, K.M. and Topel, R.H. (1985). Estimation and inference in two-step econometric models. Journal of Business & Economic Statistics, 3(4), 370–379.
sim <- simulate_metafrontier(n_groups = 2, n_per_group = 50, seed = 42)
fit <- metafrontier(log_y ~ log_x1 + log_x2, data = sim$data,
group = "group", meta_type = "stochastic")
vcov(fit)
vcov(fit, correction = "murphy-topel")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.