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
Internal validation of risk prediction model - Bootstrapped method.Dear expert. I am testing accuracy of a risk score (Continious) on predicting mortality (binary 0:1)…
Date Variable to show only yearHello, I was trying to make the date variable below into a yearly variable. I did the following: ge…
if [varname] = [values]?Hello, I have a variable, date that is empty. and a series of other date variables that contain dat…
Help with a detailed specification using multiple imputationHello, I am attempting to estimate a model: Code: logit y x1 x2 x3 where x1 is a dummy variable…
retrospective power analysis on panel dataHi statalisters ... I need some help to carry out a power test over data I obtained from one experim…
Subscribe to:
Post Comments (Atom)
0 Response to Time Trend Variable
Post a Comment