The dot notation does not exist at the moment in StatsModels
, so the best bet is to programmatically build up the formula using the Term
constructor directly:
lm(Term(:Y) ~ sum(Term.(Symbol.(names(df[:, Not(:Y)])))), df)
The dot notation does not exist at the moment in StatsModels
, so the best bet is to programmatically build up the formula using the Term
constructor directly:
lm(Term(:Y) ~ sum(Term.(Symbol.(names(df[:, Not(:Y)])))), df)