Package sfa. R topics documented: February 20, 2015

Similar documents
Package hgam. February 20, 2015

Package mnlogit. November 8, 2016

Package lgarch. September 15, 2015

Package palmtree. January 16, 2018

Package cosinor. February 19, 2015

A Guide to FRONTIER Version 4.1: A Computer Program for Stochastic Frontier Production and Cost Function Estimation.

Package milr. June 8, 2017

Package PrivateLR. March 20, 2018

Package CompGLM. April 29, 2018

Package ihs. February 25, 2015

Package rpst. June 6, 2017

Package StVAR. February 11, 2017

Package sfadv. June 19, 2017

Package truncreg. R topics documented: August 3, 2016

Package gppm. July 5, 2018

Package GWRM. R topics documented: July 31, Type Package

Package colf. October 9, 2017

Package mvprobit. November 2, 2015

Package mcemglm. November 29, 2015

Package intreg. R topics documented: February 15, Version Date Title Interval Regression

Package oglmx. R topics documented: May 5, Type Package

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package vinereg. August 10, 2018

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

Package freeknotsplines

Package inca. February 13, 2018

Package survivalmpl. December 11, 2017

Package RWiener. February 22, 2017

Package endogenous. October 29, 2016

Package fuzzyreg. February 7, 2019

Package TANDEM. R topics documented: June 15, Type Package

Package uclaboot. June 18, 2003

Package anfis. February 19, 2015

The simpleboot Package

Package cwm. R topics documented: February 19, 2015

Package bife. May 7, 2017

Package coxsei. February 24, 2015

Package datasets.load

Package desirability

Package robets. March 6, Type Package

Package rgcvpack. February 20, Index 6. Fitting Thin Plate Smoothing Spline. Fit thin plate splines of any order with user specified knots

Package lmesplines. R topics documented: February 20, Version

Package svalues. July 15, 2018

Package RCA. R topics documented: February 29, 2016

Package ordinalcont. January 10, 2018

Package intccr. September 12, 2017

Package MTLR. March 9, 2019

Package GLDreg. February 28, 2017

Package RAMP. May 25, 2017

Package psda. September 5, 2017

Package SAM. March 12, 2019

Package gpdtest. February 19, 2015

Package flsa. February 19, 2015

Package CGP. June 12, 2018

The grplasso Package

Package CausalImpact

Package robustfa. February 15, 2013

Package rvinecopulib

Package rfsa. R topics documented: January 10, Type Package

Package mlegp. April 15, 2018

Package AnDE. R topics documented: February 19, 2015

Package simr. April 30, 2018

Package glogis. R topics documented: March 16, Version Date

Package hsiccca. February 20, 2015

Package SAMUR. March 27, 2015

Package glmnetutils. August 1, 2017

Package rngsetseed. February 20, 2015

Package SmoothHazard

Package DTRreg. August 30, 2017

Package rdd. March 14, 2016

Package ETC. February 19, 2015

Package logitnorm. R topics documented: February 20, 2015

Package mreg. February 20, 2015

Package calibrar. August 29, 2016

Package sprinter. February 20, 2015

Package ICsurv. February 19, 2015

Package flam. April 6, 2018

Package ParetoPosStable

Package GauPro. September 11, 2017

Package mrm. December 27, 2016

Package HMMCont. February 19, 2015

Package bayesdp. July 10, 2018

Package MfUSampler. June 13, 2017

Package complmrob. October 18, 2015

Package reval. May 26, 2015

Package dkdna. June 1, Description Compute diffusion kernels on DNA polymorphisms, including SNP and bi-allelic genotypes.

Package TBSSurvival. January 5, 2017

Package robustfa. February 20, 2015

Package ordinalnet. December 5, 2017

Package ArCo. November 5, 2017

Package fracdiff. February 19, 2015

Package fasttextr. May 12, 2017

Package maboost. R topics documented: February 20, 2015

Package BiDimRegression

Package gpr. February 20, 2015

Package listdtr. November 29, 2016

Package nnet. R topics documented: March 20, Priority recommended. Version Date Depends R (>= 2.14.

Package CatEncoders. March 8, 2017

Package robustgam. February 20, 2015

Package REndo. November 8, 2017

Transcription:

Package sfa February 20, 2015 Version 1.0-1 Date 2014-01-05 Title Stochastic Frontier Analysis Author Ariane Straub, under the supervision of Torsten Hothorn Maintainer Ariane Straub <Ari81543@gmail.com> Stochastic Frontier Analysis introduced by Aigner, Lovell and Schmidt (1976) and Battese and Coelli (1992, 1995). License GPL-2 NeedsCompilation no Repository CRAN Date/Publication 2014-01-06 17:18:52 R topics documented: sfa-package......................................... 2 dgp............................................. 2 eff.............................................. 3 LogLik........................................... 4 methods.sfa......................................... 4 sfa.............................................. 6 te.eff.sfa........................................... 7 u.sfa............................................. 7 Index 9 1

2 dgp sfa-package Fitting stochastic frontier analysis models Details sfa is used to fit stochastic frontier analysis models. Package: sfa Type: Package Version: 0.1-0 Date: 2010-08-09 License: GPL-2 The package implements stochastic frontier analysis models as introduced by Aigner et al. (1977) and Battese and Coelli (1992, 1995). Author(s) Ariane Straub under the supervision of Torsten Hothorn <Ariane.Straub@gmail.com> (package maintainer). References Aigner, D. and Lovell, C.A.K. and Schmidt, P. (1977). Formulation and estimation of stochastic frontier production function models. Journal of Econometrics 6, 21 37. Battese, G.E. and Coelli, T.J. (1992). Frontier production functions, technical efficiency and panel data: with application to paddy farmers in India. Journal of productivity analysis 3, 153 169. Battese, G.E. and Coelli, T.J. (1995). A model for technical inefficiency effects in a stochastic frontier production function for panel data. Empirical economics 20, 325 332. Jondrow, J. and Lovell, C.A.K. and Materov, I.S. and Schmidt, P. (1982). On the estimation of technical inefficiency in the stochastic frontier production function model. Journal of Econometrics 19, 233 238. dgp Sample data generating process Sample data generating process dgp(n, b, intercept = TRUE, sc = -1)

eff 3 n b intercept sc sample size parameter vector logical, TRUE includes intercept form of the frontier model, -1 for cost frontier model, 1 for production frontier model list sfa, rnorm, runif, abs eff generic function generic function to create efficiencies eff(object,...) object a sfa model... ignored The form of the value returned by efficiencies depends on the class of its argument. See the documentation of the particular methods for details of what is produced by that method. eff.sfa

4 methods.sfa LogLik The negative log likelihood function of the SFA The negative log likelihood function is used for estimating the parameters. It varies depending on the distribution of the inefficence term u. L_hNV is used by halfnormal distribution of u. L_exp is used by exponential distribution of u. L_trunc is used by truncated normal distribution of u. L_trunc_mufest is used by truncated normal distribution of u and constant mu. L_hNV(p, y = y, X = X, sc = sc) L_exp(p, y = y, X = X, sc = sc) L_trunc(p, y = y, X = X, sc = sc) L_trunc_mufest(p, mu = mu, y = y, X = X, sc = sc) p y X sc mu vector with the parameters to estimate response design matrix of the covariables specifies the form of the frontier model (-1 = cost, 1 = production) if known, the parameter mu returns the value of the log likelihood function sfa methods.sfa Methods for displaying information about stochastic frontier analysis models 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.

methods.sfa 5 coef(object,...) print(x,...) predict(object, newdata = NULL, intercept = NULL,...) fitted(object,...) loglik(object,...) residuals(object,...) summary(object,...) print.summary(x,...) eff(object,...) x object newdata intercept... ignored. an object of class sfa an object of class sfa a data frame. If newdata = NULL then original data will be used. boolean or NULL. If intercept = NULL then the function uses the same intercept options as specified in sfa. Examples 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)

6 sfa sfa Fitting stochastic frontier analysis models sfa is used to fit stochastic frontier analysis models. sfa(formula, data = NULL, intercept = TRUE, fun = "hnormal", pars = NULL, par_mu = NULL, form = "cost", method = "BFGS",...) formula an object of class formula (or one that can be coerced to that class): a symbolic description of the model to be fitted. data a data frame. intercept logical. If true the model includes intercept. fun specifies the distribution for the inefficency term u as half-normal ("hnormal"), exponential ("exp"), or truncated-normal ("tnormal"). pars initial values for the parameters to be estimated. par_mu value for mu in the normal-/truncated-normal case. If mu is known. form specifies the form of the frontier model as "cost" or "production". method the method to be used. See optim for more details.... ignored. sfa returns an object of class sfa: y x X coef sigmau2 sigmav2 mu par_mu loglik maxlik fun sc hess ols response covariables design matrix coefficients sigmau2 sigmav2 mu of the truncated-normal distribution (Only if fun = tnormal) NULL if mu is not estimated value of the log likelihood function log likelihood function distribution of the inefficiency term u specifies the form of the frontier model (-1 = cost, 1 = production) a symmetric matrix giving an estimate of the Hessian at the solution found (See optim) the linear model for the LR-test

te.eff.sfa 7 Examples set.seed(225) daten <- dgp(n = 100, b = c(1, 2), sc = -1) test <- sfa(y ~ x, data = daten) te.eff.sfa technical efficiencies of sfa objects returns the technical efficiencies of sfa objects te.eff.sfa(object,...) object object of class sfa... ignored returns the technical efficiencies of each observation eff.sfa, te.eff.sfa u.sfa Infficiencies of a sfa-object returns the absolute inefficiencies of a sfa-object. u.sfa(object,...) object an object of class sfa... ignored

8 u.sfa returns the absolute inefficiencies of each observation eff.sfa, te.eff.sfa

Index Topic data dgp, 2 Topic function LogLik, 4 Topic methods methods.sfa, 4 Topic models sfa, 6 Topic package sfa-package, 2 runif, 3 sfa, 3, 4, 6 sfa-package, 2 summary.sfa (methods.sfa), 4 te.eff.sfa, 7, 7, 8 u.sfa, 7 abs, 3 coef.sfa (methods.sfa), 4 dgp, 2 eff, 3 eff.sfa, 3, 7, 8 eff.sfa (methods.sfa), 4 fitted.sfa (methods.sfa), 4 formula, 6 L_exp (LogLik), 4 L_hNV (LogLik), 4 L_trunc (LogLik), 4 L_trunc_mufest (LogLik), 4 LogLik, 4 loglik.sfa (methods.sfa), 4 methods.sfa, 4 optim, 6 predict.sfa (methods.sfa), 4 print.sfa (methods.sfa), 4 print.summary.sfa (methods.sfa), 4 residuals.sfa (methods.sfa), 4 rnorm, 3 9