View source: R/compare_models.R
compare_models | R Documentation |
compare_models
compare_models(model_1, model_2)
model_1 |
a model to compare |
model_2 |
the other model to compare |
comparison of the two models
data <- carData::Salaries
model_1 <- lm(salary ~ yrs.since.phd * rank, data)
model_2 <- lm(salary ~ yrs.since.phd * rank * sex, data)
compare_models(model_1, model_2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.