Hi,
I am trying to conduct an interrupted time series analysis with an intervention group and a control group using the command, however, whenever I type in the command
. "itsa treatment_Cases, treat(3) trperiod(13) lag(1) replace trpost figure" I get this error "treatid requires a tsset panel variable" which I have failed to work around yet I have a short time frame to submit my thesis.
. tsset month,
time variable: month, 1 to 31
delta: 1 unit
. itsa treatment_Cases, treat(3) trperiod(13) contid(4) lag(1) fig posttrend replace
treatid requires a tsset panel variable
r(498);

Kindly support with right command or formating to get the work doone
Thanks a lot for your support in advance
Ronald
I am trying to conduct an interrupted time series analysis with an intervention group and a control group using the command, however, whenever I type in the command
. "itsa treatment_Cases, treat(3) trperiod(13) lag(1) replace trpost figure" I get this error "treatid requires a tsset panel variable" which I have failed to work around yet I have a short time frame to submit my thesis.
. tsset month,
time variable: month, 1 to 31
delta: 1 unit
. itsa treatment_Cases, treat(3) trperiod(13) contid(4) lag(1) fig posttrend replace
treatid requires a tsset panel variable
r(498);
Kindly support with right command or formating to get the work doone
Thanks a lot for your support in advance
Ronald