
Core extractor methods for pooled qgcompmulti multiple-imputation objects
Source:R/coef.qgcompmulti_mi.R
qgcompmulti-mi-extractors.RdExtract the pooled marginal structural model (MSM) coefficient results from a
fitted qgcompmulti_mi object using standard R generics.
Arguments
- object
A fitted
qgcompmulti_miobject.- ...
Not used.
- parm
Optional specification of which coefficients to include. May be
NULLfor all coefficients, an integer vector of coefficient positions, or a character vector of coefficient names.- level
Confidence level for the returned intervals. Must be strictly between 0 and 1.
- method
Optional interval method. Pooled multiple-imputation coefficient reporting supports only
"wald"in Version 0.5.0.NULLuses the fitted object's stored default, which is"wald"for pooled MI fits.
Value
coef() returns a named numeric vector of pooled MSM coefficients on the
fitting scale.
vcov() returns the pooled covariance matrix aligned with coef(object).
confint() returns pooled Wald-style confidence intervals. The Wald
calculation uses Rubin-pooled coefficients, standard errors, and
term-specific degrees of freedom on the fitting scale. For odds-ratio and
rate-ratio estimands, returned interval limits are exponentiated for display.
Details
These extractors operate on the pooled multiple-imputation result, not on
the individual completed-data fits. They therefore return Rubin-pooled MSM
coefficient summaries for the inferential target defined by
qgcomp.glm.multi.mi(), rather than per-imputation coefficient tables,
pooled prediction objects, or pooled diagnostics. If you need to inspect the
stored completed-data fits directly, fit with keep_fits = TRUE and extract
the individual "qgcompmulti" objects from object$fits$imputation_fits.