powered by
Obtain a quick model comparison matrix for a selection of models
compare_models(x, ...)# S3 method for default compare_models(x, ...)# S3 method for svyglm compare_models(x, ...)
# S3 method for default compare_models(x, ...)
# S3 method for svyglm compare_models(x, ...)
an `inzmodelcomp` object containing model comparison statistics
a regression model (lm, glm, svyglm, ...)
other models
compare_models(default): default method
compare_models(default)
compare_models(svyglm): method for survey GLMs
compare_models(svyglm)
Tom Elliott
m0 <- lm(Sepal.Length ~ 1, data = iris) m1 <- lm(Sepal.Length ~ Sepal.Width, data = iris) m2 <- lm(Sepal.Length ~ Sepal.Width + Species, data = iris) compare_models(m0, m1, m2)
Run the code above in your browser using DataLab