Hi,
I am trying to do a diff in diff model for the panel dataset. My outcome variable (y) is binary. Treated is 1 if the individual uses y and 0 otherwise. Post is 1 for post-policy change and 0 otherwise.
I can perfectly run a LPM model using tthe follwoing code:
xtreg y treated post treated##post $a1 $a2 $a3 , r
I get extremely different results when I use FE (fixed effects) or RE(random effects). By that, I mean an extremely small coefficient for when I run FE like -2.03e-16 for my interaction term. All p values for this model, FE, are equal to 1.
Also, when I run a probit model I get an error of r(2000). The code for the probit is :
xtprobit y treated post treated##post $a1 $a2 $a3 , vce(cluster id)
outcome = treated > 0 predicts data perfectly
r(2000);
Can someone please help? Thanks.
Not sure how I can show the result using dataex.
Kind Regards,
Aarushi
Related Posts with Difference in Difference Model - Binary outcome variable- Panel data
Minimum Detectable Effect Using Non-parametric Power Simulations on Existing Data and AssignmentI am interested in calculating the minimum detectable effect (MDE) using non-parametric power simula…
How to save each Latent Class model (n=3) as predictor to run a regression model?Hi there, I am trying to look at the typologies of food outlets (within 1km from home) and eating be…
Oaxaca decompositionHi friends, I am trying to estimate the ethnic pay gap in Sri Lanka and want to use oaxaca decompos…
Replacing values in multiple string variableI have string variables asset1-asset25. For each variable, I want to change NA to missing values Th…
How do I make multiple variables in each dataset the same 'type' in order to append datasets and avoid losing data?I have a large number of datasets that contain 30+ of the same variables. I am attempting to append …
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference Model - Binary outcome variable- Panel data
Post a Comment