Data Envelopment Analysis for R, estimating robust DEA scores without and with environmental variables and doing returns-to-scale tests.
Data Envelopment Analysis (DEA) package for R, estimating robust DEA scores without and with environmental variables and doing returns-to-scale tests.
The package can be installed from the official R CRAN by
Under Linux make sure you have GLPK installed before, e.g., in Ubuntu you need
sudo apt-get install libglpk-dev
Or if you need to compile GLPK set following environmental variables before installing rDEA
export CPATH=/path/to/include/glpkexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/lib/glpk
Using devtools our package can be installed by (make sure you have libglpk-dev installed)
In Linux and Mac another option is to use command line (make sure you have slam, truncreg and truncnorm R packages installed)
git clone https://github.com/jaak-s/rDEA.gitR CMD build rDEA/R CMD INSTALL rDEA_*.tar.gz
Robust DEA (Simar and Wilson, 1998) with input model with included Japan hospital data
library(rDEA)data("hospitals", package="rDEA")## choosing inputs and outputs for analysisfirms = 1:50Y = hospitals[firms, c('inpatients', 'outpatients')]X = hospitals[firms, c('labor', 'capital')]## Robust DEA with 1000 bootstrap iterations and variable returns-to-scaledi = dea.robust(X=X, Y=Y, model="input", RTS="variable", B=1000)## robust estimates of technical efficiency for each hospitaldi$theta_hat_hat
After installing rDEA package you can run included tests by