summary.tsegest: Summary method for tsegest objects

View source: R/summary.tsegest.R

summary.tsegestR Documentation

Summary method for tsegest objects

Description

Summarizes reporting items and treatment effect estimates from a two-stage g-estimation fit.

Usage

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

Arguments

object

An object of class tsegest.

...

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. TSEg6 prints expanded predictor missingness and inclusion among eligible pre-filter observations, before interval splitting. The included count reflects all model requirements and can differ from the total minus the count missing any displayed covariate. In missing_switch_predictors, missing and missing_pct hold the included count and percentage on that row.

Value

An object of class summary.tsegest containing the analysis population, reporting checklist, parameter estimates, treatment effect estimates, and bootstrap summary.

Author(s)

Kaifeng Lu, kaifenglu@gmail.com


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