Learn R Programming

Package Jackstrap. Hello everybody!

This package applies the Jackstrap created by Sousa and Stosic (2005) Technical Efficiency of the Brazilian Municipalities: Correcting Nonparametric Frontier Mesurements For Outliers. Journal of Productivity Analysis, 24, 147-181.

The main functions are jackstrap and jackstrap_ks.

How to install?

if (!require("devtools")) install.packages("devtools")
devtools::install_github("klebermsousa/jackstrap")

The code is an example how to use the package:

library(jackstrap)
data(municipalities)

efficiency <- jackstrap (data=municipalities, ycolumn=2, xcolumn=1, bootstrap=1000, perc_sample_bubble=0.10, dea_method="vrs", orientation_dea="in", n_seed = 2000, repos=FALSE, num_cores=4)

The function jackstrap_ks is usefull to get efficiency index with criteria K-S test, as follows:

efficiency_ks <- jackstrap_ks (data=municipalities, jackstrap_obj=efficiency, num_cores = 4, perc = 0.80)

It's relevant to pay attention that the package jackstrap doesn't support multicore in Windows. Besides that, the users need to organize the data in this sequence: dmu_name, cod, output variables and input variables. The field "cod"" must have the exact name "cod" and integer type in second column.

More informations you can get in manual (manual jackstrap.pdf) localized in the vignettes folder.

Enjoy it.

Copy Link

Version

Install

install.packages('jackstrap')

Monthly Downloads

213

Version

0.1.0

License

GPL-3

Maintainer

Kleber Morais de Sousa

Last Published

June 9th, 2020

Functions in jackstrap (0.1.0)

jackstrap_ks

Jackstrap KS Method: Tool identifies outliers in Nonparametric Frontier. This function applies the developed technique by Sousa and Stosic (2005) Technical Efficiency of the Brazilian Municipalities: Correcting Nonparametric Frontier Meansurements for Outliers and to use the K-S test with criterion to define outliers.
summary_jackstrap

Summary Jackstrap: This function shows the main outcomes with outlier technique developed by Sousa and Stosic(2005).
jackstrap

Jackstrap Method: Tool identifies outliers in Nonparametric Frontier. This function applies the developed technique by Sousa and Stosic (2005) Technical Efficiency of the Brazilian Municipalities: Correcting Nonparametric Frontier Measurements for Outliers.
municipalities

Dataset of Municipalities of Bahia state in Brazil
hist_jack_ks

Histogram with Jackstrap Efficiency Indicators: This function builds graphics with distributions of efficiency indicators without outliers and complete sample. The outliers are defined by K-S Test.
plot_jackstrap_ks

Plot Jackstrap KS: This function plots p-value of Kolmogorov-Smirnov Test in decreasing order of leverage.
hist_jack_step

Histogram with Jackstrap Efficiency Indicators: This function builds a graphic with indicator distributions without outliers and complete sample. The outliers are defined by heaviside step function method.