Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Cite codes usage as shown here.

Stata commands to estimate the panel data stochastic frontier models of the first and second generation written and maintained by Oleg Badunenko (). The details are discussed in

Stochastic frontier analysis in Stata: using existing and coding new commands in “Handbook of Research Methods and Applications in Empirical Microeconomics” (edited by Nigar Hashimzade and Michael A. Thornton), 2021, Chapter 17, Edward Elgar Publishing, DOI

Codes to replicate the results in the chapter can be found here.

Installation

First, the tool to install from GitHub is required. It can be installed by typing in the Stata command line:

net install github, from("https://haghish.github.io/github/")

typical search is performed by typing

github search sf

which provides tools for installation. The package can be installed directly by typing

github install OlegBadunenko/sf-panel-1st-2nd-gen

The package can be installed without the github command:

net install xtsf1g2g, from("https://raw.githubusercontent.com/OlegBadunenko/sf-panel-1st-2nd-gen/main")

Help

Help files after installation can be called as usual:

help xtsf1g

for the 1st generation models and

help xtsf2g

for the second generation models.

Uses

This article guides through the code to replicate the results presented in the above chapter.