Learn R Programming

sfa (version 1.0-1)

methods.sfa: Methods for displaying information about stochastic frontier analysis models

Description

coef.sfa is used to display the fitted coefficients. print.sfa is used to display some information about the fitted SFA. predict.sfa is used to predict (new) data with the fitted SFA model. fitted.sfa is used to predict the original data with the fitted SFA model. logLik.sfa is used to display the value of the log likelihood function. residuals.sfa is used to return the residuals of the fitted SFA model. summary.sfa is used to calculate the summary result of the SFA. print.summary.sfa is used display the summary result of the SFA. eff.sfa is used to return the efficiencies of the SFA.

Usage

## S3 method for class 'sfa':
coef(object, \dots)
## S3 method for class 'sfa':
print(x, \dots)
## S3 method for class 'sfa':
predict(object, newdata = NULL, intercept = NULL, \dots)
## S3 method for class 'sfa':
fitted(object, \dots)
## S3 method for class 'sfa':
logLik(object, \dots)
## S3 method for class 'sfa':
residuals(object, \dots)
## S3 method for class 'sfa':
summary(object, \dots)
## S3 method for class 'sfa':
print.summary(x, \dots)
## S3 method for class 'sfa':
eff(object, \dots)

Arguments

x
an object of class sfa
object
an object of class sfa
newdata
a data frame. If newdata = NULL then original data will be used.
intercept
boolean or NULL. If intercept = NULL then the function uses the same intercept options as specified in sfa.
...
ignored.

Examples

Run this code
set.seed(225)
daten <- dgp(n = 100, b = c(1, 2), sc = -1)
test <- sfa(y ~ x, data = daten)
coef(test)
print(test)
predict(test)
fitted(test)
logLik(test)
residuals(test)
summary(test)
eff(test)

Run the code above in your browser using DataLab