Hello all!
I would like to compare coefficients from differect models with lincom. But lincom does not work.
My research question is whether pre-academic vocational education and training (VET) pays off for higher education graduates - and here specifically, whether it pays off for subgroups (e.g. men) more/less than for e.g. women. The problem is that lincom tells me that it cannot find my estimation results which I stored.
Here my syntax (a simplified version):
reg income i.vet he_inst study_field control1 control... if women==0, coeflegend
est store M1
2nd model:
reg income i.vet he_inst study_field control1 control... if women==1, coeflegend
est store M2
lincom [M1]i.vet - [M2]i.vet
Stata response: "equation [M1] not found"
Of course, I could test for different effects via modeling an interaction effect (i.vet##i.women). But I have good reason to do it in separate models - and then compare the VET effects of the two separate models.
In the lincom code, I have tried several versions to get the stores results (with brackets, without brackets, etc). But it does not work.
Has anyone an idea how to do it properly ? ChatGPT's help was none. Now I hope for good old natural intelligence ;-)
Thank you very much in advance
Gunther
I would like to compare coefficients from differect models with lincom. But lincom does not work.
My research question is whether pre-academic vocational education and training (VET) pays off for higher education graduates - and here specifically, whether it pays off for subgroups (e.g. men) more/less than for e.g. women. The problem is that lincom tells me that it cannot find my estimation results which I stored.
Here my syntax (a simplified version):
reg income i.vet he_inst study_field control1 control... if women==0, coeflegend
est store M1
2nd model:
reg income i.vet he_inst study_field control1 control... if women==1, coeflegend
est store M2
lincom [M1]i.vet - [M2]i.vet
Stata response: "equation [M1] not found"
Of course, I could test for different effects via modeling an interaction effect (i.vet##i.women). But I have good reason to do it in separate models - and then compare the VET effects of the two separate models.
In the lincom code, I have tried several versions to get the stores results (with brackets, without brackets, etc). But it does not work.
Has anyone an idea how to do it properly ? ChatGPT's help was none. Now I hope for good old natural intelligence ;-)
Thank you very much in advance
Gunther
Comment