Dear all,
I am running a regression on a categorical variable that takes the value of 0,1,2.
I want to omit value 1 so I write:
char categoricalvariable[omit] 1
xi: reghdfe y i.categoricalvariable, a() vce()
But when I want to interact with another categorical variable:
xi: reghdfe y i.categoricalvariable##i.categoricalvariable2, a() vce() , it states "interactions not allowed"
So I have to run:
char categoricalvariable[omit] 1
reghdfe y i.categoricalvariable##i.categoricalvariable2, a() vce()
But when I do this stata doesn't recognise that I want to omit the value 1, and the value that ends up omitted is 0.
Does someone know how to solve this?
Many thanks
I am running a regression on a categorical variable that takes the value of 0,1,2.
I want to omit value 1 so I write:
char categoricalvariable[omit] 1
xi: reghdfe y i.categoricalvariable, a() vce()
But when I want to interact with another categorical variable:
xi: reghdfe y i.categoricalvariable##i.categoricalvariable2, a() vce() , it states "interactions not allowed"
So I have to run:
char categoricalvariable[omit] 1
reghdfe y i.categoricalvariable##i.categoricalvariable2, a() vce()
But when I do this stata doesn't recognise that I want to omit the value 1, and the value that ends up omitted is 0.
Does someone know how to solve this?
Many thanks
Comment