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, logDepVar = TRUE, ... )
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). |
logDepVar |
logical. Is the dependent variable logged? |
... |
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 arne.henningsen@gmail.com
sfa
, summary.frontier
,
and efficiencies
.
# rice producers in the Philippines (panel data) data( riceProdPhil ) riceProdPhil <- plm.data( riceProdPhil, c( "FMERCODE", "YEARDUM" ) ) # Error Components Frontier (Battese & Coelli 1992), no time effect rice <- sfa( log( PROD ) ~ log( AREA ) + log( LABOR ) + log( NPK ), data = riceProdPhil ) efficiencies( rice ) riceProdPhil$efficiencies <- efficiencies( rice, asInData = TRUE ) # Error Components Frontier (Battese & Coelli 1992), with time effect riceTime <- sfa( log( PROD ) ~ log( AREA ) + log( LABOR ) + log( NPK ), data = riceProdPhil, timeEffect = TRUE ) efficiencies( riceTime ) riceProdPhil$efficienciesTime <- efficiencies( riceTime, asInData = TRUE )