Hi,

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)
With the codes, I got a graph with two curves for cost==1 group and cost==0 group in one graph. But now I would like to have another graph which shows the difference between the two curves I have now with 95% CI. I'd appreciate it if anyone can help!

Best,
Jjing