Hi Experts,
I'm new to stata and I have a question regarding comparing only one item of margin estimate. Below is my codes:
eststo model1: glm y i.a##i.b##i.c
margins i.a##i.b##i.c
eststo model2: glm y i.a##i.b##i.c if d=1
margins i.a##i.b##i.c
After I run this, I'll get 2 big tables and the "margin" column have estimates of all predictors and different interactions(i.a##i.b##i.c will give you 3 ways interactions). Is there a way I can easily compare only the i.a#i.b#i.c across 2 models? Which is the last interaction of the table.
Thank you very much!
I'm new to stata and I have a question regarding comparing only one item of margin estimate. Below is my codes:
eststo model1: glm y i.a##i.b##i.c
margins i.a##i.b##i.c
eststo model2: glm y i.a##i.b##i.c if d=1
margins i.a##i.b##i.c
After I run this, I'll get 2 big tables and the "margin" column have estimates of all predictors and different interactions(i.a##i.b##i.c will give you 3 ways interactions). Is there a way I can easily compare only the i.a#i.b#i.c across 2 models? Which is the last interaction of the table.
Thank you very much!
Comment