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
How to overcome problems in fuzzy match via matchit and reclink?Hi Statalisters, I try to use fuzzy match commands matchit and reclink to merge two datasets. Here…
connecting several coefficients across sub-graphs - CoefplotHi statalister, I have an issue with connecting coeficients results using coefplot (Stata journal v…
help with display of coefficients in a plotwhat could be the problem when one of the coefficients from the linear regression model is not displ…
Missing birth year in one panel observation issueI have an issue in my data set that looks like this: ID Year Birth Year 1 2000 1990 1 2002 This iss…
post stratification weightsDear all, I am analysing a survey in Stata and would need to get some means and regression coeffici…
Subscribe to:
Post Comments (Atom)
0 Response to Time Trend Variable
Post a Comment