Dear Statalisters,
It is my first time posting here, and I don’t have an Econ background!
For context, I am doing something similar to interrupted time series methods on household panel data.
The dataset contains monthly household purchases, and I have >2,000 households over three years. The panel is unbalanced.
My outcome is binary (0=non-buyer, 1=buyer), and my outcome is also binary (0=18 months before implementing a policy, 1=18 months after). I’ve been using xtlogit to construct the counterfactual (extrapolate the pre trends into the post-policy period), and I’ve been comparing the differences between RE and FE specifications.
To predict the counterfactual for the xtlogit RE model, I used “predict” and the pr option because it estimates the marginal probability of a positive outcome. I also have been using margins to do the predictions.
When I tried to do the same with xtlogit FE, 386 households (7,093 observations) were dropped because they were all positive or all negative outcomes. Also, since the pr option is unavailable to use with predict, I had to use the pc1 option to predict the counterfactual.
I read in several forums that you should not use the predict option with xtlogit FE because it is conditional, but does this also applies to xtlogit RE? If what I’m doing is incorrect, which models do you recommend to predict a counterfactual in panel data with a binary outcome?
Any insights are highly appreciated! I’m also happy to provide the outputs as needed.
Thanks.
P.S: I'm using STATA 16.1
Related Posts with Predicting counterfactual for binary outcome in panel data and potential issues using xtlogit
Create value-weighted decile portfoliosI want to build Dezil portfolios based on the last observed values of the respective calendar year f…
Help with strtrimHello, I have noticed that I have some likert-scale variables where some of the values have trailin…
From yearly to quarterly dataHello to all! I am new to this Forum, please apologies if I am not using it right. I have a question…
Monte carlo simulation to test RE modelHi folks, I run a random effect model and would like to make a robustness test with monte carlo. I …
Problem with MergingHi, I am trying to merge two datasets which look as follows: Master Data: Year State Constituen…
Subscribe to:
Post Comments (Atom)
0 Response to Predicting counterfactual for binary outcome in panel data and potential issues using xtlogit
Post a Comment