Hi I am preparing my data for carrying out Lasso and I dont understand how I can create interactions between my categorial variables in the categorial list I created?
I first create a list with my 2 continous variables
vl create cont = (age ln_cit_tot)
Then a list with my 64 categorial variables incl. dummies
vl create cat = (x1, x2, x3....x64)
Then I do my entire list
vl substitute myvarlist = i.fact cont i.fact#c.cont
However this does not include the interactions between all variables in cat (x1#x2 x1#x3 x2#x3.....)
How can I make sure that I also include the interactions between the categorials in my variable list?
Thanks
I first create a list with my 2 continous variables
vl create cont = (age ln_cit_tot)
Then a list with my 64 categorial variables incl. dummies
vl create cat = (x1, x2, x3....x64)
Then I do my entire list
vl substitute myvarlist = i.fact cont i.fact#c.cont
However this does not include the interactions between all variables in cat (x1#x2 x1#x3 x2#x3.....)
How can I make sure that I also include the interactions between the categorials in my variable list?
Thanks

Comment