Package: sfaR 1.0.1.9000

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.9000.tar.gz
sfaR_1.0.1.9000.zip(r-4.5)sfaR_1.0.1.9000.zip(r-4.4)sfaR_1.0.1.9000.zip(r-4.3)
sfaR_1.0.1.9000.tgz(r-4.4-any)sfaR_1.0.1.9000.tgz(r-4.3-any)
sfaR_1.0.1.9000.tar.gz(r-4.5-noble)sfaR_1.0.1.9000.tar.gz(r-4.4-noble)
sfaR_1.0.1.9000.tgz(r-4.4-emscripten)sfaR_1.0.1.9000.tgz(r-4.3-emscripten)
sfaR.pdf |sfaR.html
sfaR/json (API)
NEWS

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

Peer review:

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

Datasets:

On CRAN:

3.95 score 3 stars 1 packages 7 scripts 298 downloads 12 exports 45 dependencies

Last updated 6 days agofrom:7bc35f1f2f. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winOKOct 31 2024
R-4.5-linuxOKOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 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