# NOT RUN {
# stepwise regression
model <- lm(y ~ ., data = surgical)
ols_stepaic_both(model)
# }
# NOT RUN {
# }
# NOT RUN {
# stepwise regression plot
model <- lm(y ~ ., data = surgical)
k <- ols_stepaic_both(model)
plot(k)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab