Dear Stata users,
I would like to ask you about how could I compare two different coefficient of xtlogit models with the same dependent variable.
Model 1:
. xtlogit a006 a016 a020_nac i.a018 i.a019 i.a023 i.a021_imput a041_l2_imput a002_new a024_l2 i.anyo if a030_4==1, nolog i( ident)
. estimate store model11
Model 2:
. xtlogit a006 a016 a020_nac i.a018 i.a019 i.a023 i.a021_imput a041_l2_imput a002_new a024_l2 i.anyo if a030_4==2, nolog i( ident)
. estimate store model12
I would like to compare the coefficient of a016 var in model 1 with a016 var in model 2.
In this case I need to run two different models instead of introducing a factor variable i.a030 in the model.
If I run:
. lincom [model11]a016 - [model12]a016
The error message is: “equation [model11] not found”
If I run previously to lincom:
. suest model11 model13
The error message is: “unable to generate scores for model model11 suest requires that predict allow the score option r(322)”
I would be very grateful if you could give me some advice.
Thanks in advance,
Rocio Aguilar
I would like to ask you about how could I compare two different coefficient of xtlogit models with the same dependent variable.
Model 1:
. xtlogit a006 a016 a020_nac i.a018 i.a019 i.a023 i.a021_imput a041_l2_imput a002_new a024_l2 i.anyo if a030_4==1, nolog i( ident)
. estimate store model11
Model 2:
. xtlogit a006 a016 a020_nac i.a018 i.a019 i.a023 i.a021_imput a041_l2_imput a002_new a024_l2 i.anyo if a030_4==2, nolog i( ident)
. estimate store model12
I would like to compare the coefficient of a016 var in model 1 with a016 var in model 2.
In this case I need to run two different models instead of introducing a factor variable i.a030 in the model.
If I run:
. lincom [model11]a016 - [model12]a016
The error message is: “equation [model11] not found”
If I run previously to lincom:
. suest model11 model13
The error message is: “unable to generate scores for model model11 suest requires that predict allow the score option r(322)”
I would be very grateful if you could give me some advice.
Thanks in advance,
Rocio Aguilar
Comment