Closed graemeblair closed 5 years ago
Compatibility with stepwise procedures is an anti-feature imho - would rather not revisit the sins of the 80s. :)
No:
From olsrr:::check_model()
, run before most functions:
if (!all(class(model) == "lm")) {
cat("Hmmm.. Looks like you have specified the wrong model. Follow the below steps to debug this error.\n\n* Check if you have used the",
crayon::bold$blue("lm()"), "function to build the model.\n* If you have never used it before, you can learn more by typing",
crayon::bold$red("?lm"), "or", crayon::bold$red("help(lm)"),
"in the Console\n.\n\nBelow is an example using mtcars data:\n",
crayon::bold$blue("lm(formula = mpg ~ disp + hp + wt, data = mtcars)"),
"\n", "Happy modeling :)\n")
stop("", call. = FALSE)
}
Closing this as I don't think it's that useful and this is clearly intended for others.
https://www.r-bloggers.com/introducing-olsrr/