I have two marginsplot for the same model for two different groups, but I would like to have a graph which shows the difference between the two curves with 95% CI. Can anyone tell me how to do that? Here are my codes:
Code:
reghdfe participation age##shock if cost==1
Code:
margins age, dydx(shock) saving(file1,replace)
Code:
reghdfe participation age##shock if cost==0
Code:
margins age, dydx(shock) saving(file2,replace)
Code:
combomarginsplot file1 file2,yline(0)
Best,
Jjing
0 Response to How to plot the difference between two marginsplot?
Post a Comment