summary.ipcw: Summary method for ipcw objects

View source: R/summary.ipcw.R

summary.ipcwR Documentation

Summary method for ipcw objects

Description

Summarizes reporting items, switching-model estimates, weight distribution, and final outcome-model estimates from an inverse probability of censoring weights (IPCW) fit.

Usage

## S3 method for class 'ipcw'
summary(object, ...)

Arguments

object

An object of class ipcw.

...

Additional arguments passed to or from other methods.

Details

The model_missingness component reports distinct subjects by treatment arm and model, with columns predictor, n, total, and pct. It includes each covariate (including stratification variables), Any covariate missing, and Included in model. Percentages use subjects with eligible input records as the denominator, before covariate complete-case filtering. Missingness means that at least one eligible record has a missing value; inclusion counts distinct IDs in the retained model input data. Other model requirements may also exclude subjects. With longitudinal data, subjects with both missing and retained complete records can appear in both counts. This component is not printed as part of the summary. IPCW6 prints expanded predictor missingness and inclusion among eligible pre-filter observations, before interval splitting. Numerator and denominator models share denominator-based complete-case filtering, so the included count need not equal the total minus the count missing a numerator predictor. In missing_predictors, missing and missing_pct hold the included count and percentage on that row. IPCW8 prints the treatment variable first in the weight distribution, without the internal treated indicator.

Value

An object of class summary.ipcw containing the analysis population, reporting checklist, covariate balance and positivity diagnostics, switching-model parameter estimates, weight distribution, and final outcome-model estimates.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com


trtswitch documentation built on Dec. 2, 2026, 5:06 p.m.