Compare model parameters of multiple models
Compute and extract model parameters of multiple regression models.
See model_parameters
for further details.
compare_parameters( ..., ci = 0.95, effects = "fixed", component = "conditional", standardize = NULL, exponentiate = FALSE, df_method = "wald", p_adjust = NULL, style = NULL, column_names = NULL, verbose = TRUE ) compare_models( ..., ci = 0.95, effects = "fixed", component = "conditional", standardize = NULL, exponentiate = FALSE, df_method = "wald", p_adjust = NULL, style = NULL, column_names = NULL, verbose = TRUE )
... |
One or more regression model objects, or objects returned by
|
ci |
Confidence Interval (CI) level. Default to 0.95 (95%). |
effects |
Should parameters for fixed effects ( |
component |
Model component for which parameters should be shown. See
documentation for related model class in |
standardize |
The method used for standardizing the parameters. Can be
|
exponentiate |
Logical, indicating whether or not to exponentiate the
the coefficients (and related confidence intervals). This is typical for,
say, logistic regressions, or more generally speaking: for models with log
or logit link. Note: standard errors are also transformed (by
multiplying the standard errors with the exponentiated coefficients), to
mimic behaviour of other software packages, such as Stata. For
|
df_method |
Method for computing degrees of freedom for p values,
standard errors and confidence intervals (CI). See documentation for
related model class in |
p_adjust |
Character vector, if not |
style |
String, indicating which style of output is requested. Following templates are possible:
|
column_names |
Character vector with strings that should be used as
column headers. Must be of same length as number of models in |
verbose |
Toggle warnings and messages. |
A data frame of indices related to the model's parameters.
This function is in an early stage and does not yet cope with more complex models, and probably does not yet properly render all model components.
if (packageVersion("insight") >= "0.13.0") { data(iris) lm1 <- lm(Sepal.Length ~ Species, data = iris) lm2 <- lm(Sepal.Length ~ Species + Petal.Length, data = iris) lm3 <- lm(Sepal.Length ~ Species * Petal.Length, data = iris) compare_parameters(lm1, lm2, lm3) data(mtcars) m1 <- lm(mpg ~ wt, data = mtcars) m2 <- glm(vs ~ wt + cyl, data = mtcars, family = "binomial") compare_parameters(m1, m2) # exponentiate coefficients, but not for lm compare_parameters(m1, m2, exponentiate = "nongaussian") # change column names compare_parameters(m1, m2, column_names = c("linear model", "logistic reg.")) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.