Hi,
I have an annoying issue when manipulating fixed effect in a syntax command.My program looks like that:
I would like to be able to include in option "control" any kind of control variables, especially fixed effect. Yet when I use a string variable as a fixed effect, like in:
if country is not a numerical variable I get the following message
while with xi option stata handles pretty well string variable fixed effect.
Is there a way to let my control option accept string variable as fixed effect?
Thanks
I have an annoying issue when manipulating fixed effect in a syntax command.My program looks like that:
Code:
program define myprogram syntax [varlist] [using] [if] [pw aw fw], TREATment(varlist) [CONTrol(varlist fv)] end
Code:
myprogram x y, treat(T) cont(i.country)
HTML Code:
country: string variables may not be used as factor variables (error in option control())
while with xi option stata handles pretty well string variable fixed effect.
Is there a way to let my control option accept string variable as fixed effect?
Thanks
Comment