knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", comment = "", fig.align = "center" ) library(snfa) library(ggplot2)
Fitting of non-parametric production frontiers for use in efficiency analysis. Methods are provided for both a smooth analogue of Data Envelopment Analysis (DEA) and a non-parametric analogue of Stochastic Frontier Analysis (SFA). Frontiers are constructed for multiple inputs and a single output using constrained kernel smoothing as in Racine et al. (2009), which allow for the imposition of monotonicity and concavity constraints on the estimated frontier. Additional methods are provided to use constructed frontiers to estimate allocative efficiency, technical efficiency, and efficiency/productivity changes over time.
# The latest release version of snfa can be installed from CRAN: install.packages("snfa") # The development version of snfa can also be installed from github: # install.packages("devtools") devtools::install_github("tkmckenzie/snfa", build_opts = "--no-resave-data") install.packages(c("ggplot2", "knitr", "lpSolve", "Rdpack", "rmarkdown")) # Install suggested packages
snfa contains methods for estimating smooth frontiers and various types of efficiency. The best way to get an overview of the package and its motivation is to go through the vignette (currenlty only available in development version from github):
vignette("snfa")
It can also be helpful to look through examples (shown in Examples below):
example("fit.boundary") example("allocative.efficiency")
example("fit.boundary", prompt.prefix = "")
example("allocative.efficiency", prompt.prefix = "")
snfa is young and still under development. If you run into any issues or find any bugs, please email at tkmckenzie@gmail.com.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.