Thanks to Kit Baum a new package is available on SSC. xthst tests for slope homogeneity in large panels.
xthst performs a test of slope homogeneity in panels with a large number observations of the cross-sectional (N) and time (T) dimension. The test is based on Pesaran, Yamagata (2008, Journal of Econometrics) and Blomquist, Westerlund (2013, Economic Letters). The null hypothesis of the test is of homogeneous slopes, implying that all slope coefficients are identical across cross-sectional units. xthst can be used for both balanced and unbalanced panels, supports strictly and weakly exogenous regressors, cross-sectional dependence and serial correlated errors.
The syntax is:
where varlist_p are variables to be partialled out and varlist_cr variables added as cross-sectional averages.
Examples:
When regressing x on y, test if x has heterogeneous slope coefficients:
If the errors are serially correlated, use the HAC consistent version based on Blomquist, Westerlund (2013, Economic Letters):
In a multivariate model it is possible to test a subset of regressors:
The test works well if the underlying model is an AR(p):
For more information and examples, please see the help file.
xthst is a joint project with Tore Bersvendsen (University of Agder).
xthst performs a test of slope homogeneity in panels with a large number observations of the cross-sectional (N) and time (T) dimension. The test is based on Pesaran, Yamagata (2008, Journal of Econometrics) and Blomquist, Westerlund (2013, Economic Letters). The null hypothesis of the test is of homogeneous slopes, implying that all slope coefficients are identical across cross-sectional units. xthst can be used for both balanced and unbalanced panels, supports strictly and weakly exogenous regressors, cross-sectional dependence and serial correlated errors.
The syntax is:
Code:
xthst depvar indepvars [if] [,partial(varlist_p) noconstant ar hac bw(integer) whitening kernel(qs|bartlett|truncated) crosssectional(varlist_cr [,cr_lags(numlist)]) nooutput ]
Examples:
When regressing x on y, test if x has heterogeneous slope coefficients:
Code:
xthst y x
Code:
xthst y x, hac
Code:
xthst y x1 x2, partial(x2)
Code:
xthst y L1.y L2.y , ar
xthst is a joint project with Tore Bersvendsen (University of Agder).
Comment