logLik extracts the log-likelihood value(s) from stochastic
metafrontier models estimated with sfametafrontier.
Arguments
- object
A stochastic metafrontier model returned by
sfametafrontier.- individual
Logical. If
FALSE(default), the sum of all observations' log-likelihood values is returned. IfTRUE, a vector of each observation's log-likelihood value is returned.- ...
Currently ignored.
Value
logLik returns either an object of class
'logLik', which is the log-likelihood value with the total number of
observations (nobs) and the number of free parameters (df) as
attributes, when individual = FALSE, or a list of elements, containing
the log-likelihood of each observation (logLik), the total number of
observations (Nobs) and the number of free parameters (df),
when individual = TRUE.
See also
sfametafrontier, for the stochastic metafrontier analysis model
fitting function using cross-sectional or pooled data.
