xthst: Testing slope homogeneity in Stata
2020 London (online) Stata User Group Meeting Tore Bersvendsen1, Jan Ditzen2
1Kristiansand Municipality, Norway 2Heriot-Watt University, Edinburgh, UK
xthst : Testing slope homogeneity in Stata 2020 London (online) - - PowerPoint PPT Presentation
xthst : Testing slope homogeneity in Stata 2020 London (online) Stata User Group Meeting Tore Bersvendsen 1 , Jan Ditzen 2 1 Kristiansand Municipality, Norway 2 Heriot-Watt University, Edinburgh, UK Center for Energy Economics Research and Policy
1Kristiansand Municipality, Norway 2Heriot-Watt University, Edinburgh, UK
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
2 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
3 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
◮ F-Test requires homoskedasticity assumption, fixed N and requires
◮ Hausman style tests valid only if N > T and require strongly exogenous
◮ Bootstrap approaches (Blomquist and Westerlund, 2016) ◮ Delta Test (Pesaran and Yamagata, 2008) and HAC robust version
Bersvendsen, Ditzen xthst
4 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
5 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
◮ β2HAC is a HAC robust estimator of the pooled coefficients β2 ◮ ˆ
◮ and ˆ
Bersvendsen, Ditzen xthst
6 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
7 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Options Stored Values Bersvendsen, Ditzen xthst
8 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
9 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
1 2 vi,l,t
Bersvendsen, Ditzen xthst
10 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
13 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
14 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
15 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
Bersvendsen, Ditzen xthst
16 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
. xthst d.log_rgdp L.d.log_rgdp /// log_hc log_ck log_ngd , comparehac Testing for slope heterogeneity H0: slope coefficients are homogenous Delta p-value 2.957 0.003 adj. 3.171 0.002 Delta (HAC) p-value
0.593 adj.
0.567 Tests disagree. Autocorrelation might occur. See helpfile for further info. HAC Settings: Kernel: quadratic spectral (QS) with average bandwith 45 Variables partialled out: constant Cross Sectional dependence in base variables detected: D.log_rgdpo LD.log_rgdpo log_hc log_ck log_ngd See helpfile for xthst and xtcd2 for further info. Bersvendsen, Ditzen xthst
17 / 25
Motivation Econometric Model Testing slope homogeneity Stata Syntax Monte Carlo Empirical Examples Conclusion
◮ HAC robust tests with different bandwidth and kernels ◮ Cross-sectional dependence robust ◮ Pure autoregressive model
◮ Error correction models. ◮ Improve cross-sectional dependence robust test. Bersvendsen, Ditzen xthst
18 / 25
References
Bersvendsen, Ditzen xthst
19 / 25
References
Bersvendsen, Ditzen xthst
20 / 25
References
Bersvendsen, Ditzen xthst
21 / 25
References
back
Bersvendsen, Ditzen xthst
22 / 25
References
back
Bersvendsen, Ditzen xthst
23 / 25
References
back
Bersvendsen, Ditzen xthst
24 / 25
References
back
Bersvendsen, Ditzen xthst
25 / 25