Author
Listed:
- Alfonso Ugarte Ruiz
(BBVA Research)
Programming Language
Stata
Abstract
The package XTSEL includes two new commands (xtselvar and xtselmod) that help us to rank the best predictors between a number of alternative explanatory variables (candidates), or the best specification between all possible combinations of a set of explanatory variables, according to several in-sample and out-of-sample statistics. They are specially adapted for a panel data framework, firstly because the out-of-sample prediction performance is measured in the two inherent dimensions of a panel (time-series and cross-individuals), and secondly because they allow a large number of methodological options that typically are necessary in panel data analysis. Given a set of n predictors, xtselvar estimates the same specification n times, one for each predictor. xtselmod estimates 2^n - 1 different specifications, one per each possible combination out of the set of n variables. Both procedures keep constant the same dependent variable and an optional list of fixed control variables, plus several other methodological options. For each candidate variable/specification, the procedures estimate a set of parameters and statistical criteria: 1. Adjusted R squared (R2_ad). 2. Akaike Information Criterion (AIC). 3. Bayesian Information Criterion (BIC) 4. U-Theil in time-series dimension: RMSE of variable/specification vs. RMSE from a naïve prediction or an AR1 model (Uth_TS). 5. U-Theil in cross-section dimension: RMSE of variable/specification vs. RMSE from a naïve prediction or an AR1 model (Uth_CS). Both commands rank each variable/specification according to each criterion and generate one ranking per each one of them. xtselvar also reports coefficients and t-statistic of each candidate variable. They also compute a composite ranking summarizing all five criteria. They finally sort all candidate variables/specifications according to the selected ranking, which by default is the composite ranking.
Suggested Citation
Alfonso Ugarte Ruiz, 2020.
"XTSEL: Stata module for selection of variables and specification in a panel-data framework,"
Statistical Software Components
S458816, Boston College Department of Economics, revised 11 Nov 2022.
Handle:
RePEc:boc:bocode:s458816
Note: This module should be installed from within Stata by typing "ssc install xtsel". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s458816. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/debocus.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.