| pamm_ic_cr | R Documentation |
Competing-risks extension of pamm_ic. The event time is drawn
from the all-cause conditional hazard within (L, R] and a cause is
assigned: observed causes are retained (with the time drawn so that it follows
the cause-specific conditional density, via rejection), unknown causes are
sampled with probability proportional to the cause-specific hazards at the
imputed time (see impute_ic_cr). Each completed data set is
transformed with as_ped_cr (cause-specific hazards) and re-fit.
Cf. Delord & Genin (2016) for MI of interval-censored competing-risks data.
pamm_ic_cr(
formula,
data,
cause,
model_formula = NULL,
cut = NULL,
max_time = NULL,
m = 10L,
iter = 1L,
censor_code = 0L,
id = "id",
engine = "gam",
...
)
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. |
cause |
Name of the column in |
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
|
censor_code |
Value of |
id |
Name of the subject identifier column. |
engine |
Estimation engine passed to |
... |
Further arguments passed to |
An object of class pamm_ic with type = "cr"; fits
are cause-specific (stacked ped_cr) pamm objects and
cause_levels records the competing causes.
pamm_ic, add_cif
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.