XTHETEROQUANT: Stata module to compute quantiles of heterogeneous individual-specific coefficients in panel data, with SQB and CDQB bootstrap inference (Galvao, Hounyo and Lin, 2026)
Merwan Roudane ()
Statistical Software Components from Boston College Department of Economics
Abstract:
xtheteroquant implements the two-step estimator of Galvao, Hounyo and Lin (2026) for the tau-quantile of the cross-sectional distribution of heterogeneous individual-specific coefficients in the linear panel-data model y_it = a_i + x_it'b_i + e_it, i = 1,...,N, t = 1,...,T, where every unit i has its own intercept a_i and its own slope vector b_i. The procedure is: Step 1 (individual estimation). For each unit i, estimate the coefficient vector by OLS using only that unit's time series. Step 2 (quantile aggregation). For each coefficient, take the empirical tau-quantile of the N first-step estimates, theta_hat(tau) = argmin_theta (1/N) sum_i rho_tau(theta_hat_i - theta), where rho_tau is the quantile-regression check function. Unlike conventional fixed-effects quantile regression (qreg / panel QR), where tau indexes the conditional distribution of the outcome, here tau indexes the distribution of the structural coefficients across units: tau = .9 answers "what is the slope for the 90th-percentile most-responsive unit?", not "what is the effect at the 90th percentile of y?". Typical uses: heterogeneous treatment or policy sensitivities, the distribution of mutual-fund timing skill, firm-specific pass-through, country-specific elasticities.
Language: Stata
Requires: Stata version 14
Keywords: quantile regression; heterogeneity; panel data (search for similar items in EconPapers)
Date: 2026-06-12
Note: This module should be installed from within Stata by typing "ssc install xtheteroquant". 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.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/x/xtheteroquant.ado
http://fmwww.bc.edu/repec/bocode/x/xtheteroquant.sthlp
http://fmwww.bc.edu/repec/bocode/x/xtheteroquant_example.do
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459750
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().