sfm-package | R Documentation |
R package sfm makes the estimation of cross-sectional and panel stochastic frontier models user friendly. This package is currently being developed to work in a wide range of applications. The main functions of the package are two cross-sectional functions: "sfm" and "zsfm" as well as a panel function "psfm" which all implement various SFA based estimators.
The DESCRIPTION file:
This package was not yet installed at build time.
Index: This package was not yet installed at build time.
Chen, Schmidt, and Wang (2014, JoE); Fillipini and Greene (2016, JPA), Wang and Ho (2010, JoE)
http://www.davidharrybernstein.com/software{http://www.davidharrybernstein.com/software}
To install in R:
library(devtools)
install_github("davidhbernstein/sfm", build_vignettes=TRUE)
## Simple application of the generalized true random effects estimator.
library(sfm)
data_trial <- data_gen_p(t=10,N=100, rand = 100,
sig_u = 1, sig_v = 0.3,
sig_r = .2, sig_h = .4,
cons = 0.5, beta1 = 0.5,
beta2 = 0.5)
psfm(formula = y_gtre ~ x1 + x2,
model_name = "GTRE",
data = data_trial,
individual = "name",
PSopt = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.