Sorry to put such an elementary question on here but I have been struggling to get STATA to run my data and running into this problem:
format %tm date
. describe
Contains data
obs: 96
vars: 4
size: 1,056
-----------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
-----------------------------------------------------------------------------------------
Date int %tdMon-YY Date
Indiaarrivals long %10.0g India arrivals
Dummy byte %10.0g Dummy
date float %tm
-----------------------------------------------------------------------------------------
Sorted by:
Note: Dataset has changed since last saved.
. itsa Indiaarrivals, single treat (48) trperiod(2008m12) lag(1) postrend figure
trperiod() invalid -- invalid numlist
r(121);
. tsset date
time variable: date, 2005m1 to 2012m12
delta: 1 month
. itsa Indiaarrivals, single treat (48) trperiod(2008m12) lag(1) postrend figure
trperiod() invalid -- invalid numlist
r(121);
As you can see from above I have monthly data 2005 to 2012 inclusive and trying to run interrupted time series for an event which occurred in December 2008. It keeps giving me the error as shown can anyone help me please?
Best wishes
Yeg
format %tm date
. describe
Contains data
obs: 96
vars: 4
size: 1,056
-----------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
-----------------------------------------------------------------------------------------
Date int %tdMon-YY Date
Indiaarrivals long %10.0g India arrivals
Dummy byte %10.0g Dummy
date float %tm
-----------------------------------------------------------------------------------------
Sorted by:
Note: Dataset has changed since last saved.
. itsa Indiaarrivals, single treat (48) trperiod(2008m12) lag(1) postrend figure
trperiod() invalid -- invalid numlist
r(121);
. tsset date
time variable: date, 2005m1 to 2012m12
delta: 1 month
. itsa Indiaarrivals, single treat (48) trperiod(2008m12) lag(1) postrend figure
trperiod() invalid -- invalid numlist
r(121);
As you can see from above I have monthly data 2005 to 2012 inclusive and trying to run interrupted time series for an event which occurred in December 2008. It keeps giving me the error as shown can anyone help me please?
Best wishes
Yeg

Comment