I read this URL.
I found step_poly, which returns a poly model fitted value, right?
Is step_mutate the only way to create a feature that squares, cubes, or interacts with a column?
y ~ a + b
squares = a^2
cubes=a^3
interacts=a*b
I know that these can be specified in formulas if they are linear models, but I would like to know how to create them explicitly as features in tidymodels.
thank you