Hi all,
I would like to save my marginal effects results (coefficients + CI's) ideally, as a model. I need to graph the difference in marginal effects between two scenarios (exactly what the marginsplot output gives but I need to do this as the difference). So, I was hoping I can save the results as model1 and model2 and generate a new model12 = model1-model2 (I am not sure if this is something I can do in STATA) and then plot the results. If this is not possible, any other solution would be appreciated!
I also tried storing my results with the command 'est store' but this only saved the coefficients + SE and, I need CI's. I also don't think I can manipulate anything with the 'store' command. I know there have been similar post to this however, the code posted on these forums did not work for me.
The code I have:
(Scenario 1)
oprobit ncat1 i.nsex i.nage i.nincome
margin
marginsplot
(Scenario 2)
oprobit ncat2 i.nsex i.nage i.nincome
margin
marginsplot
If there is a way I can plot the difference between these two plots in a more simpler way, that would also work! p.s. ncat1 and ncat2 have the exact same levels/orders, they are just separated by scenarios.
I would like to save my marginal effects results (coefficients + CI's) ideally, as a model. I need to graph the difference in marginal effects between two scenarios (exactly what the marginsplot output gives but I need to do this as the difference). So, I was hoping I can save the results as model1 and model2 and generate a new model12 = model1-model2 (I am not sure if this is something I can do in STATA) and then plot the results. If this is not possible, any other solution would be appreciated!
I also tried storing my results with the command 'est store' but this only saved the coefficients + SE and, I need CI's. I also don't think I can manipulate anything with the 'store' command. I know there have been similar post to this however, the code posted on these forums did not work for me.
The code I have:
(Scenario 1)
oprobit ncat1 i.nsex i.nage i.nincome
margin
marginsplot
(Scenario 2)
oprobit ncat2 i.nsex i.nage i.nincome
margin
marginsplot
If there is a way I can plot the difference between these two plots in a more simpler way, that would also work! p.s. ncat1 and ncat2 have the exact same levels/orders, they are just separated by scenarios.
Comment