| print.pamm_ic | R Documentation |
Fits a piecewise exponential additive (mixed) model to interval-censored
time-to-event data using a multiple-imputation (MI) and re-fit strategy: exact
event times are repeatedly drawn from the model-based conditional distribution
p(T \mid L < T \le R, x, \theta) (see impute_ic_times),
with \theta drawn from the imputation model's asymptotic posterior
before each imputation ("proper" MI – this is what makes the pooled
intervals calibrated),
each completed data set is transformed to PED format with the standard
(right-censored) pipeline and re-fit, and the resulting fits are pooled for
inference with the existing add_* family (see add_surv_prob
and the pamm_ic methods).
## S3 method for class 'pamm_ic'
print(x, ...)
## S3 method for class 'pamm_ic'
summary(object, ...)
## S3 method for class 'summary.pamm_ic'
print(x, ...)
pamm_ic(
formula,
data,
model_formula = NULL,
cut = NULL,
max_time = NULL,
m = 10L,
iter = 1L,
init = c("midpoint", "uniform"),
id = "id",
engine = "gam",
...
)
x, object |
A |
... |
Further arguments passed to |
formula |
A two-sided formula whose left-hand side is an interval-censored
response |
data |
A data frame in standard (one row per subject) format. |
model_formula |
Optional model formula passed to |
cut |
Optional fixed vector of interval cut-points shared across all
imputations. If |
max_time |
Optional cap on the cut-points. |
m |
Number of imputations (default 10). |
iter |
Number of impute-refit iterations per imputation chain (default
|
init |
Initialiser for the first fit: |
id |
Name of the subject identifier column. |
engine |
Estimation engine passed to |
An imputed event time is an exact event time, so once imputation has produced
it, the entire downstream pipeline (split_data -> pamm
-> add_*) is reused unchanged. The interval cut-points are resolved once
and shared across all imputations, but mgcv's smooth bases and
centering constraints can still differ across completed data sets. Pooled
predictions therefore evaluate each fitted imputation model with its own
design matrix; object$pooled is a summary container, not a
gam-like model for direct predict() or plot() calls.
An object of class pamm_ic: a list with
fitsthe m imputation fits, each slimmed (via
strip_pamm_fit) to drop per-observation slots so memory
does not scale with the number of imputations; they still support
coef, vcov and predict(type = "lpmatrix"), which is
all the pooled add_* methods need.
pooleda pooled summary container with Rubin-pooled
parametric coefficients and covariance, pooled parametric/smooth tables
with median-p values ($p.table, $s.table), parametric
coefficient FMI diagnostics ($fmi.table) and smooth-term FMI
five-number summaries over the training grid ($smooth.fmi).
init_fitthe (slimmed) initialiser/imputation model.
unstable_chainsindices of imputation chains flagged as
numerically unstable (extreme coefficients or coefficient SEs on the
log-hazard scale; also raised as a warning). Degenerate chains
can arise – silently, without mgcv warnings – when iterating
flexible time-varying models on small samples.
the parsed bounds ic, the shared cut, and
metadata.
print/summary report the pooled summary; add_* compute
pooled quantities of interest from fits.
impute_ic_times, add_surv_prob,
strip_pamm_fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.