Dear Statalisters,
I am using Stata's factor variable notation to create interactions:
glm depvar i.x1##i.x2 i.x1##i.x3 i.x3##i.x4, fam(bin) link(log) difficult eform
I would like to use a different parametrization to include indicator variables for all reference categories, similar to the output at pag. 2 (model c2) in Stata tip 106: M.L. Buis (2012) "Stata tip 106: With or without reference", The Stata Journal, 12(1), pp. 162-164.
I tried glm depvar ibn.x1##ibn.x2 i.x1##ibn.x3 i.x3##ibn.x4, fam(bin) link(log) difficult eform
but some interactions were omitted because of collinearity.
My question is how to deal with more than one interaction.
Sincerely
Giuliana
I am using Stata's factor variable notation to create interactions:
glm depvar i.x1##i.x2 i.x1##i.x3 i.x3##i.x4, fam(bin) link(log) difficult eform
I would like to use a different parametrization to include indicator variables for all reference categories, similar to the output at pag. 2 (model c2) in Stata tip 106: M.L. Buis (2012) "Stata tip 106: With or without reference", The Stata Journal, 12(1), pp. 162-164.
I tried glm depvar ibn.x1##ibn.x2 i.x1##ibn.x3 i.x3##ibn.x4, fam(bin) link(log) difficult eform
but some interactions were omitted because of collinearity.
My question is how to deal with more than one interaction.
Sincerely
Giuliana
Comment