I am trying to add interaction terms into a simple new command. Something simple like this:
Code:
cap program drop newreg program define newreg syntax [varlist], CONTrol(varlist fv) xi: reg `varlist' `control' end
Code:
newreg y x, cont(mu##nu)
Code:
newreg y x, cont(mu#nu)
interactions not allowed. Surprisingly the command
Code:
newreg y x, cont(c.mu##c.nu)
Similarly,
Code:
newreg y x, cont(i.mu*i.nu)
variable mu*i.nu not found
(error in option control())
Any idea on how to specify interaction in a syntax command?
Thanks
0 Response to Factor variable and interaction in syntax command
Post a Comment