cooks.distance.frontier {frontier} | R Documentation |
Pseudo-Cook's Distance of Stochastic Frontier Models
Description
This method returns the Pseudo-Cook's distances
from stochastic frontier models
estimated with the frontier package
(e.g., function sfa
).
Usage
## S3 method for class 'frontier'
cooks.distance( model, target = "predict",
asInData = FALSE, progressBar = TRUE, ... )
Arguments
model |
a stochastic frontier model
estimated with the frontier package
(e.g. function |
target |
character string.
If |
asInData |
logical. If |
progressBar |
logical. Should a progress bar be displayed while the Cook's distances are obtained? |
... |
additional arguments that arecurrently ignored
if argument |
Value
A vector of the Pseudo-Cook's distances for each observation
that was used in the estimation that is provided as argument model
.
Author(s)
Arne Henningsen
See Also
Examples
# example included in FRONTIER 4.1 (cross-section data)
data( front41Data )
# Cobb-Douglas production frontier
cobbDouglas <- sfa( log( output ) ~ log( capital ) + log( labour ),
data = front41Data )
summary( cobbDouglas )
# Pseudo-Cook's distances for predicted values
cooks.distance( cobbDouglas )
# Pseudo-Cook's distances for efficiency estimates
cooks.distance( cobbDouglas, "efficiencies" )