Dear StataListers,

Is it possible to recode the _at variable in a stored estimate (see below)? I would like to add 23 units to that variable within the estimate such that they read from 24 to 40.

This (_at) is a time-centered variable for months in the second period in an interrupted time series that I am trying to overlay using coefplot. The pre-period trendline is plotted from 0 to 40 months, and I want the post-period estimates, which are run using a different variable time-centered such that month 24 is equal to 0, to shift on the plot to start at month 24. I don't want to change it in my regression.

Thanks!!

Is it possible to recode the _at variable in a stored estimate (see below)? I would like to add 23 units to that variable within the estimate such that they read from 24 to 40.

This (_at) is a time-centered variable for months in the second period in an interrupted time series that I am trying to overlay using coefplot. The pre-period trendline is plotted from 0 to 40 months, and I want the post-period estimates, which are run using a different variable time-centered such that month 24 is equal to 0, to shift on the plot to start at month 24. I don't want to change it in my regression.

Code:

. margins , at (policyXmontime2=(0(1)16)) post estimates store aim1_post estimates table aim1_post --------------------------- Variable | aim1_post -------------+------------- _at | 1 | .19411549 2 | .19503899 3 | .19596542 4 | .19689476 5 | .19782702 6 | .1987622 7 | .19970029 8 | .2006413 9 | .20158522 10 | .20253205 11 | .20348179 12 | .20443443 13 | .20538997 14 | .20634842 15 | .20730976 16 | .208274 17 | .20924113 ---------------------------

## Comment