Dear Statalist,

I am trying to merge two graphs (as shown in the attached graph file) into one using the user written coefplot command as follows but it is not working:

reg employed i.agecat i.agecat#i.dis i.married i.redu i.chb5 i.ch514 i.urban i.wave if male==1 margins r.dis, at(agecat=(16(5)61)) post
estimates store Male

reg employed i.agecat i.agecat#i.dis i.married i.redu i.chb5 i.ch514 i.urban i.wave if male==0 margins r.dis, at(agecat=(16(5)56)) post
estimates store Female

coefplot Male Female, at

Can anyone help, many thanks in advance!

Michael