gof_map | R Documentation |
By default, this data frame is passed to the 'gof_map' argument of the 'modelsummary' function. Users can modify this data frame to customize the list of statistics to display and their format. See example below.
gof_map
data.frame with 4 columns of character data: raw, clean, fmt, omit
if (identical(Sys.getenv("pkgdown"), "true")) {
library(modelsummary)
mod <- lm(wt ~ drat, data = mtcars)
gm <- modelsummary::gof_map
gm$omit[gm$raw == 'deviance'] <- FALSE
gm$fmt[gm$raw == 'r.squared'] <- "%.5f"
modelsummary(mod, gof_map = gm)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.