Description Usage Arguments Value Author(s) See Also Examples
View source: R/cooks.distance.frontier.R
This method returns the Pseudo-Cook's distances
from stochastic frontier models
estimated with the frontier package
(e.g., function sfa
).
1 2 3 | ## S3 method for class 'frontier'
cooks.distance( model, target = "predict",
asInData = FALSE, progressBar = TRUE, ... )
|
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 |
A vector of the Pseudo-Cook's distances for each observation
that was used in the estimation that is provided as argument model
.
Arne Henningsen
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 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" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.