1. 針對樓主原先的問題,還沒聽說 Stata 可以允許此情況。我有一位同事有用 R 軟體將其延伸至樓主所問之情況,請見:
pdR: Threshold Model and Unit Root Tests in Panel Data
2. 至於"七月流水"的問題,雖然我沒用過 xtptm,但我覺得
應該不行,理由是在 rx(x1) 的 x1 是在不同 regime 中會不一樣,但在前面的 xtptm y x1 x2 x3 你又要求 x1 在不同 regime 中要一樣,這顯然是有問題的!我也用 xthreg 指令試了一下,結果如預期是有問題的!
- . * single threshold model
- . xthreg i q1 q2 q3 d1 qd1 c1, rx(c1) qx(d1) thnum(1) grid(400) trim(0.01) bs(100)
- Estimating the threshold parameters: 1st ...... thest(): 3200 conformability error
- thestm(): - function returned error
- <istmt>: - function returned error
- r(3200);
复制代码