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
Repeated time valuesI don't understand. Stata is giving me this error message when trying to run VAR. I checked the data…
Repeating 'tab' command for several variablesHappy New Year to everyone! I am trying to figure how to repeat the tab command for several IVs (Ag…
Using Cohen's d for proportion test - after "prtest"Hi all, I am testing proportion differences between two independent samples, e.g., the proportion o…
"Asreg" rolling window regressions with monthly dataHi everyone: I have a question regarding the asreg command written by @Attaullah Shah. Since I am a…
Compare two xtnbreg models in panel dataHi Everyone, I am new in this forum and I have quick question, I appreciate any comment in advanced.…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference Model - Binary outcome variable- Panel data
Post a Comment