Dear Statalisters,
I am investigating the impact of a policy on a series of non-negative outcomes using panel data on over 2,000 households observed over up to 78 months (unbalanced panel). I am using an interrupted time series design because everyone in the sample was exposed to the policy at the same time. The generic model allows for an immediate intercept change and a change in the time trend after the policy came into effect.
An exponential conditional mean model makes more theoretical sense than a linear model, so I am estimating Poisson models. Specifically, following advice from this thread, I am using correlated random effects models that I estimate by pooled Poisson.
I am interested in the average difference between the fitted values and counterfactual predictions in the policy period, so my question is whether I should set both the policy variables (an indicator variable and its interaction with time) and their panel-level averages to zero in the counterfactual scenario or only the policy variables, leaving the panel-level averages untouched. I assume that because the linear combination of the panel-level averages acts as a control for the household fixed effects and those are not supposed to have changed, it should be the latter, but I am not entirely sure.
To make things a little more concrete, here is what I am doing:
where policy is an indicator variable for the policy period and d2-d78 are dummies for the number of observations on each household (as recommended in the aforementioned thread).
gives the fitted values exp(a1 * month + a2 * policy + a3 * month * policy + xb), and
gives the counterfactual predicted values exp(a1 * month + xb), with x = x1 ... xk month_bar policy_bar monthxpolicy_bar x1_bar ... xk_bar d2-d78.
I am investigating the impact of a policy on a series of non-negative outcomes using panel data on over 2,000 households observed over up to 78 months (unbalanced panel). I am using an interrupted time series design because everyone in the sample was exposed to the policy at the same time. The generic model allows for an immediate intercept change and a change in the time trend after the policy came into effect.
An exponential conditional mean model makes more theoretical sense than a linear model, so I am estimating Poisson models. Specifically, following advice from this thread, I am using correlated random effects models that I estimate by pooled Poisson.
I am interested in the average difference between the fitted values and counterfactual predictions in the policy period, so my question is whether I should set both the policy variables (an indicator variable and its interaction with time) and their panel-level averages to zero in the counterfactual scenario or only the policy variables, leaving the panel-level averages untouched. I assume that because the linear combination of the panel-level averages acts as a control for the household fixed effects and those are not supposed to have changed, it should be the latter, but I am not entirely sure.
To make things a little more concrete, here is what I am doing:
Code:
poisson y c.month##policy x1 ... xk month_bar policy_bar monthxpolicy_bar x1_bar ... xk_bar d2-d78, vce(cluster panel_id) margins if policy == 1, expression(predict(n) - predict(n) / exp(_b[1.policy] + _b[month#1.policy] * month))
Code:
predict(n)
Code:
predict(n) / exp(_b[1.policy] + _b[month#1.policy] * month)
Comment