gof_map function

Data.frame used to clean up and format goodness-of-fit statistics

Data.frame used to clean up and format goodness-of-fit statistics

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. data

Format

data.frame with 4 columns of character data: raw, clean, fmt, omit

gof_map

Examples

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) }
  • Maintainer: Vincent Arel-Bundock
  • License: GPL-3
  • Last published: 2025-02-02