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