Hello All,
I am preparing my data to run an interrupted time series.
I have to create a time trend variable.
My data has a variable called month in the format 201401 (2014 January)
Every household ID (hh_id) has 4 entries for each month (hence there are four 201401 entries)
I attempted to use tsset 'month' however I get the 'repeated time variables in sample' message
I was wondering how I can create a time trend variable which has just one unique entry for each month ?
Please let me know if there is other information you might need
Thanks
Related Posts with Time Trend Variable
Merge Panel Data set by IdsI have a panel data set (Master) with id, name, month, and year. I have another data set (Data set …
help with foreach using 2 variable lists to generate a new variableHello all. I am trying to use foreach to generate a new variable based on multiple variables from 2 …
Help with new variable generationHi, I`m trying to generate a new variable = different expressions by sex, but only if sex==0 the exp…
different count problems within variablesHi there! The forum already helped me a great deal (thx especially to Nick Cox!). However I am now …
Why different results for tests for serial correlation / autocorrelation in panel data (abar, actest, xtserial)?I would like to test my panel data for serial correlation. The panel data is unbalanced and has gaps…
Subscribe to:
Post Comments (Atom)
0 Response to Time Trend Variable
Post a Comment