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-3rd-gen

The package can be installed without the github command:

net install xtsf3g, from("https://raw.githubusercontent.com/OlegBadunenko/sf-panel-3td-gen/main")

Help

Help files after installation can be called as usual:

help xtsf3gpss1

for the PSS model of type I

help xtsf3gpss2

for the PSS model of type II

help xtsf3gpss3

for the PSS model of type III

and

help xtsf3gkss

for the KSS model.

Uses

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