This repository contains all .tex files and source code for the following paper:
- Minsu Chang & Francis J. DiTraglia, "A Generalized Focused Information Criterion for GMM", Journal of Applied Econometrics, forthcoming.
The file "main.pdf" contains a copy of the paper itself, including the online-only appendix at the end of the document.
Required Software and Packages
Calculations for the simulations and empirical examples were carried out in a mixture of
C++ using the package
Rcpp as an interface to
R. A full list of the packages needed to replicate our results is as follows:
plm is used only to load the data for our empirical example (see below for details) and
tikzDevice are used only to generate the Figures (B1-B10) that appear in the online-only appendix. The package
parallel is used only the generate the Random versus Fixed Effects results from the online-only appendix (Figures B1 and B2). For more information, see the comments beginning in line 15 of
Code for our simulation studies appears in the directory
contains three subdirectories:
DynamicPanelcontains code to replicate Table 2 from the body of the paper and figures B3 through B10 from the online Appendix.
SRvsLRcontains code to replicate Table 1 from the body of the paper.
REvsFEcontains code to replicate Figures B1 and B2 from the online Appendix.
To replicate any of these examples, navigate to the corresponding directory and
create a subdirectory called
results if it does not already exist. Then run
Our empirical example uses the dataset of Baltagi and Levin (1992) and Griffin and Xiong (2000), as provided by the
plm package in R.
The dataset is a panel of 1309 observations for 46 U.S. states over the period 1963-1992 containing the following variables:
state= State abbreviation.
price= Price per pack of cigarettes.
pop16= Population above the age of 16.
cpi= Consumer price index with (1983=100).
ndi= Per capita disposable income.
sales= Cigarette sales in packs per capita.
pimin= Minimum price in adjoining states per pack of cigarettes.
All code for our empirical example is contained in the directory
Our code loads the dataset directly from the "plm" package.
In case this dataset is excluded from future versions of the package, we include a .csv file
Cigar.csv in the
To replicate the empirical example, navigate to the appropriate directory and run the script