I am having difficulty with factor variables (i.variable) with a collapsed dataset. The collapse command worked without a problem and I can do other analysis without issues.
But when I try to do a regression using the i. prefix, it gives the error "factor variables not allowed". If I used the interaction notation ##, I get "interaction variables not allowed"
For example: reg income i.city
Is it not possible to use factor notation with a collapsed dataset?
But when I try to do a regression using the i. prefix, it gives the error "factor variables not allowed". If I used the interaction notation ##, I get "interaction variables not allowed"
For example: reg income i.city
Is it not possible to use factor notation with a collapsed dataset?
Comment