Perform stepwise selection on a linear model
tl_step_selection(
data,
formula,
direction = "backward",
criterion = "AIC",
trace = FALSE,
steps = 1000,
...
)A selected model
A data frame containing the training data
A formula specifying the initial model
Direction of stepwise selection: "forward", "backward", or "both"
Criterion for selection: "AIC" or "BIC"
Logical; whether to print progress
Maximum number of steps to take
Additional arguments to pass to step()