用stata做ITSA,参考了Ariel Linden 的文章 Conducting interrupted time-series analysis for single- and multiple-group comparisons中的stata命令,当干预措施发生在两个时间点时,用的命令是[size=7.9701pt]itsa cigsale, single treat(3) trperiod(1982 1989) lag(1) replace posttr [size=7.9701pt]figure,但是会报错:Treatment periods not found in time variable. Check trperiod( )。当把时间点只保留一个时,是可以输出结果的,有小伙伴遇到过相同问题嘛?想知道哪里出错了,该怎么修改。
请问我用itsa 总费用 , single trperiod(202108) lag(1) figure命令。
但是报错
Treatment periods not found in time variable: check trperiod()
我又使用
itsa 总费用, single trperiod(2.0e+05) lag(1) posttrend figure
还是报错这个,是为什么呢?
已经做了tsset year了,但显示我有gaps,也找不到gaps