I am fitting a model that includes a long list of interactions like i.x##c.y i.x##c.y2 i.x##i.z##i.q
That's fine if I'm using a command that can handle the ## coding, but what if I'm not?
Is there a quick way to code up all the interactions as a list of dummy variables, and then put that list in a macro variable that I can use wherever I like?
Many thanks for suggestions.
That's fine if I'm using a command that can handle the ## coding, but what if I'm not?
Is there a quick way to code up all the interactions as a list of dummy variables, and then put that list in a macro variable that I can use wherever I like?
Many thanks for suggestions.
Comment