gaze {pixiedust} | R Documentation |
Mimic Stargazer Output to Display Multiple Models
Description
Tidy multiple models and display coefficients and test statistics in a side-by-side format.
Usage
gaze(
...,
include_glance = TRUE,
glance_vars = c("adj.r.squared", "sigma", "AIC"),
digits = 3
)
Arguments
... |
models to be tidied. Arguments may be named or unnamed. For named arguments, the model will be identfied by the argument name; for unnamed arguments, the object name will be the identifier. |
include_glance |
|
glance_vars |
|
digits |
|
Details
This function is still in development. Significant stars will be added in a future version. Note that function defaults may be subject to change.
Functional Requirements
Return a data frame object
Cast an error if
include_glance
is notlogical(1)
Cast an error if
glance_vars
is not acharacter
vector.Cast an error if
digits
is not"integerish(1)"
.
Examples
fit1 <- lm(mpg ~ qsec + am + wt + gear + factor(vs), data = mtcars)
fit2 <- lm(mpg ~ am + wt + gear + factor(vs), data = mtcars)
gaze(fit1, fit2)
gaze(with_qsec = fit1,
without_qsec = fit2)
gaze(fit1, fit2, include_glance = FALSE)
gaze(fit1, fit2, glance_vars = c("AIC", "BIC"))