coef.metafrontier: Extract Coefficients from a Metafrontier Model

coef.metafrontierR Documentation

Extract Coefficients from a Metafrontier Model

Description

Extract Coefficients from a Metafrontier Model

Usage

## S3 method for class 'metafrontier'
coef(object, which = c("meta", "group"), extraPar = FALSE, ...)

Arguments

object

a "metafrontier" object.

which

character. "meta" (default) returns the metafrontier coefficients; "group" returns a named list of group-specific coefficient vectors.

extraPar

logical. If TRUE, auxiliary parameters are included alongside the frontier coefficients. For which = "group" the variance parameters are back-transformed to their natural scale (sigmaV, sigmaU), mu and eta are kept as estimated, and heteroscedastic Z coefficients are labelled with their column names. For which = "meta" the Stage 2 variance parameters are appended for stochastic metafrontiers.

...

additional arguments (currently unused).

Value

A named numeric vector (which = "meta") or a named list of numeric vectors (which = "group").

Examples

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")
coef(fit)
coef(fit, extraPar = TRUE)
coef(fit, which = "group", extraPar = TRUE)


metafrontier documentation built on Aug. 19, 2026, 5:08 p.m.