efficiencies.frontier {frontier} | R Documentation |
This method returns efficiency estimates from stochastic frontier models
estimated with frontier
.
## S3 method for class 'frontier': efficiencies( object, asInData = FALSE, ... )
object |
a stochastic frontier model
returned by frontier . |
asInData |
logical. If TRUE ,
the efficiency estimates are returned in the same order
as the corresponding observations in the data set
used for the estimation
(see section ‘value’ below). |
... |
currently ignored. |
If argument asInData
is FALSE
(default),
a matrix of efficiency estimates is returned,
where each row corresponds to a firm (cross-section unit)
and each column corresponds to a time period
(only if efficiency estimates differ between time periods).
If argument asInData
is TRUE
,
a vector of efficiency estimates is returned,
where the efficiency estimates are in the same order
as the corresponding observations in the data set
used for the estimation.
Arne Henningsen
# rice producers in the Philippines (panel data) data( riceProdPhil ) riceProdPhil <- plm.data( riceProdPhil, c( "FMERCODE", "YEARDUM" ) ) riceProdPhil$lPROD <- log( riceProdPhil$PROD ) riceProdPhil$lAREA <- log( riceProdPhil$AREA ) riceProdPhil$lLABOR <- log( riceProdPhil$LABOR ) riceProdPhil$lNPK <- log( riceProdPhil$NPK ) # Error Components Frontier (Battese & Coelli 1992), no time effect rice <- frontier( yName = "lPROD", xNames = c( "lAREA", "lLABOR", "lNPK" ), data = riceProdPhil ) efficiencies( rice ) riceProdPhil$efficiencies <- efficiencies( rice, asInData = TRUE ) # Error Components Frontier (Battese & Coelli 1992), with time effect riceTime <- frontier( yName = "lPROD", xNames = c( "lAREA", "lLABOR", "lNPK" ), data = riceProdPhil, timeEffect = TRUE ) efficiencies( riceTime ) riceProdPhil$efficienciesTime <- efficiencies( riceTime, asInData = TRUE )