Dear Statalisters,
Here are the codes for 'margins' after two regressions :
I would like to know if it is possible to overlay these two 'margins' plots together and make one plot. User written programme 'combomarginsplot' will not work as the 'at' 'variables' for two models are different (tried and got error message). Don't want 'graph combine' either as it will combine two plots side by side or up/down, whereas what I am looking forward to is to overlaying the two graphs on each other. Is there any other way to achieve that?
Your comments and suggestions are always very helpful and many thanks in advance.
All the best,
Here are the codes for 'margins' after two regressions :
Code:
reg cpauc2 i.rand c.dvpa0 i.rand#c.dvpa0 //model-1 margins i.rand,at(dvpa0=(10(10)100)) marginsplot reg cpauc2 i.rand c.dvpa2 i.rand#c.dvpa2 //model-2 margins i.rand,at(dvpa2=(10(10)100)) marginsplot
I would like to know if it is possible to overlay these two 'margins' plots together and make one plot. User written programme 'combomarginsplot' will not work as the 'at' 'variables' for two models are different (tried and got error message). Don't want 'graph combine' either as it will combine two plots side by side or up/down, whereas what I am looking forward to is to overlaying the two graphs on each other. Is there any other way to achieve that?
Your comments and suggestions are always very helpful and many thanks in advance.
All the best,
Comment