Hi, I have a weekly time series (the timevar is the date of monday of every week 2005-2013 ie 4april2005, 11april2005 etc ). I've declared it a timeseries which seems to be ok
(. tsset
time variable: Date, 04apr2005 to 30dec2013, but with gaps
delta: 1 day)
but when I try and use time series commands it won't let me - I can't use the lag or difference function in regression or do dfuller for example. It just says 'no observations'.
I tried converting it to the stata weekly date but there are a few years where the final 2 mondays in december get put as the same stata week, which then means it won't work as a time series either.
Is there some other way of sorting this out?
Thanks in advance.
(. tsset
time variable: Date, 04apr2005 to 30dec2013, but with gaps
delta: 1 day)
but when I try and use time series commands it won't let me - I can't use the lag or difference function in regression or do dfuller for example. It just says 'no observations'.
I tried converting it to the stata weekly date but there are a few years where the final 2 mondays in december get put as the same stata week, which then means it won't work as a time series either.
Is there some other way of sorting this out?
Thanks in advance.
Comment