Using all variables on a regression?


#1

Is there any way to quickly say Julia I want to use all variables on a regression’s formula without explicitly writing them by hand?
(Something like R’s “.” to select all columns for the model)
It’s useful when you have many variables.
How can you do it if you also want to add interactions?

lm(@formula(y ~ .), data)