I would like to have predicted mean immigrant-native wage gaps on the vertical axis and years since migration (ysm) on the horizontal axis and generate such a profile based on the following simple regression pooling immigrants and natives:
Code:
regress logwage im ysm im#i.ysm
Code:
margins i.ysm
Code:
marginsplot, x(ysm) recast(scatter)
I have no clue how to get the predicted mean immigrant native wage gap on the vertical axis!?
I would appreciate some thoughts on this.
Thank you very much in advance.
Nico
0 Response to How to generate predicted wage (gap) with margins command and plot a profile with marginsplot
Post a Comment