Package: sfaR 1.0.1

K Hervé Dakpo

sfaR: Stochastic Frontier Analysis Routines

Maximum likelihood estimation for stochastic frontier analysis (SFA) of production (profit) and cost functions. The package includes the basic stochastic frontier for cross-sectional or pooled data with several distributions for the one-sided error term (i.e., Rayleigh, gamma, Weibull, lognormal, uniform, generalized exponential and truncated skewed Laplace), the latent class stochastic frontier model (LCM) as described in Dakpo et al. (2021) <doi:10.1111/1477-9552.12422>, for cross-sectional and pooled data, and the sample selection model as described in Greene (2010) <doi:10.1007/s11123-009-0159-1>, and applied in Dakpo et al. (2021) <doi:10.1111/agec.12683>. Several possibilities in terms of optimization algorithms are proposed.

Authors:K Hervé Dakpo [aut, cre], Yann Desjeux [aut], Arne Henningsen [aut], Laure Latruffe [aut]

sfaR_1.0.1.tar.gz
sfaR_1.0.1.tar.gz(r-4.5-noble)sfaR_1.0.1.tar.gz(r-4.4-noble)
sfaR_1.0.1.tgz(r-4.4-emscripten)sfaR_1.0.1.tgz(r-4.3-emscripten)
sfaR.pdf |sfaR.html
sfaR/json (API)
NEWS

# Install 'sfaR' in R:
install.packages('sfaR', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/hdakpo/sfar/issues

Datasets:

2.18 score 1 packages 7 scripts 297 downloads 12 exports 45 dependencies

Last updated 2 days agofrom:eea98614f5. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-linuxOKOct 30 2024

Exports:efficienciesextract.sfacrossextract.sfalcmcrossextract.sfaselectioncrossiclcmcrosslogLikmarginalsfacrosssfalcmcrosssfaselectioncrossskewnessTest

Dependencies:askpassbdsmatrixcodetoolscollapsecubaturecurldigestdoParallelfastGHQuadforeachFormulagenericshpahttriteratorsjsonlitelatticelmtestmarqLevAlgMASSMatrixmaxLikmimemiscToolsmnormnleqslvnlmeopensslplmqrngR6randtoolboxrbibutilsRcppRcppArmadilloRcppEigenRcppParallelRdpackrngWELLsandwichsystexregtrustOptimucminfzoo

Readme and manuals

Help Manual

Help pageTopics
sfaR: A package for estimating stochastic frontier modelssfaR-package sfaR _SFAR
Extract coefficients of stochastic frontier modelscoef coef.sfacross coef.sfalcmcross coef.sfaselectioncross coef.summary.sfacross coef.summary.sfalcmcross coef.summary.sfaselectioncross
Data on Norwegian dairy farmsdairynorway
Data on Spanish dairy farmsdairyspain
Compute conditional (in-)efficiency estimates of stochastic frontier modelsefficiencies efficiencies.sfacross efficiencies.sfalcmcross efficiencies.sfaselectioncross
Data on U.S. electric power generationelectricity
Extract frontier information to be used with *texreg* packageextract extract.sfacross extract.sfalcmcross extract.sfaselectioncross
Extract fitted values of stochastic frontier modelsfitted fitted.sfacross fitted.sfalcmcross fitted.sfaselectioncross
Extract information criteria of stochastic frontier modelsic ic.sfacross ic.sfalcmcross ic.sfaselectioncross
Extract log-likelihood value of stochastic frontier modelslogLik logLik.sfacross logLik.sfalcmcross logLik.sfaselectioncross
Marginal effects of the inefficiency drivers in stochastic frontier modelsmarginal marginal.sfacross marginal.sfalcmcross marginal.sfaselectioncross
Extract total number of observations used in frontier modelsnobs nobs.sfacross nobs.sfalcmcross nobs.sfaselectioncross
Extract residuals of stochastic frontier modelsresiduals residuals.sfacross residuals.sfalcmcross residuals.sfaselectioncross
Data on rice production in the Philippinesricephil
Stochastic frontier estimation using cross-sectional databread.sfacross estfun.sfacross print.sfacross sfacross
Latent class stochastic frontier using cross-sectional databread.sfalcmcross estfun.sfalcmcross print.sfalcmcross sfalcmcross
Deprecated functions of sfaRbread.lcmcross coef.lcmcross coef.summary.lcmcross efficiencies.lcmcross estfun.lcmcross fitted.lcmcross ic.lcmcross lcmcross logLik.lcmcross marginal.lcmcross nobs.lcmcross print.lcmcross print.summary.lcmcross residuals.lcmcross sfaR-deprecated summary.lcmcross vcov.lcmcross
Sample selection in stochastic frontier estimation using cross-section databread.sfaselectioncross estfun.sfaselectioncross print.sfaselectioncross sfaselectioncross
Skewness test for stochastic frontier modelsskewnessTest
Summary of results for stochastic frontier modelsprint.summary.sfacross print.summary.sfalcmcross print.summary.sfaselectioncross summary summary.sfacross summary.sfalcmcross summary.sfaselectioncross
Data on Swiss railway companiesswissrailways
Data on U.S. electricity generating plantsutility
Compute variance-covariance matrix of stochastic frontier modelsvcov vcov.sfacross vcov.sfalcmcross vcov.sfaselectioncross
Data on world productionworldprod