modelsummary (version 0.1.0)

extract_gof: Extract goodness-of-fit statistics from a single model

Description

Extract goodness-of-fit statistics from a single model

Usage

extract_gof(model, fmt = "%.3f", gof_map = NULL)

Arguments

model

object type with an available `glance` method.

fmt

string which specifies how numeric values will be rounded. This string is passed to the `sprintf` function. '%.3f' will keep 3 digits after the decimal point with trailing zero. '%.5f' will keep 5 digits. '%.3e' will use exponential notation. See `?sprintf` for more options.

gof_map

data.frame with four columns: `raw`, `clean`, `fmt`, and `omit`. See `modelsummary::gof_map`

Value

tibble with goodness-of-fit statistics