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

Description Usage Format Examples

Description

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.

Usage

1

Format

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

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)

## End(Not run)

modelsummary documentation built on June 17, 2021, 5:08 p.m.