pool_pamm_fits: Pool a list of (stripped) imputation fits into a pooled...

View source: R/pamm-ic-pool.R

pool_pamm_fitsR Documentation

Pool a list of (stripped) imputation fits into a pooled summary object

Description

Combines the m imputation fits with Rubin's rules: the pooled parametric coefficients use \bar Q and V = \bar W + (1 + 1/m) B. Smooth-term p-values are pooled with the median-p rule (see references in strip_pamm_fit). Because mgcv smooth coefficients can use different centered bases across imputations, this returns a plain pooled summary object rather than a gam: add_*() methods evaluate every imputation fit with its own design matrix for predictions.

Usage

pool_pamm_fits(fits, smry, skeleton = NULL)

Arguments

fits

List of stripped imputation fits.

smry

List of summary.gam objects, one per fit (computed before stripping).

skeleton

Optional full (unstripped) fit used only to supply a common training-grid model frame for smooth-term FMI summaries.


pammtools documentation built on Aug. 27, 2026, 1:08 a.m.