It would be very cool to add a formula interface for fitting HAL additive models.
So if X has two columns x1, x2 you could write
fit_hal(..., formula = "x1 + x2")
and it would fit a 1-degree HAL
fit_hal(..., formula = "x1*x2")
would fit the 2-degree HAL, etc...
It would be very cool to add a formula interface for fitting HAL additive models.
So if
Xhas two columnsx1, x2you could writeand it would fit a 1-degree HAL
would fit the 2-degree HAL, etc...