print.gof_battery: Print a goodness-of-fit battery

View source: R/run_all_gof.R

print.gof_batteryR Documentation

Print a goodness-of-fit battery

Description

Formats the run.all.gof result as a compact, readable table: rows grouped by test family, p-values shown to four decimals (or scientific for very small values, "-" when not available), and a significance flag. The object is still a plain data.frame underneath, so all the raw columns remain available for programmatic use.

Usage

## S3 method for class 'gof_battery'
print(x, ...)

Arguments

x

A gof_battery object returned by run.all.gof.

...

Ignored.

Details

The header counts the rows that reject at the 0.05 level. The rows printed for comparison only (the sparse Pearson and Deviance statistics and the F-test; see run.all.gof) carry no significance flag and are not counted. Notes are wrapped to getOption("width").

Value

x, invisibly.

Examples

fit <- glm(outcome ~ age + bmi + sex + treatment, data = gof_demo, family = binomial)
print(run.all.gof(fit, include_slow = FALSE, install = "no"))

ebrahim.gof documentation built on Oct. 11, 2026, 5:07 p.m.