| impute_ic_cr | R Documentation |
Draws the event time from the all-cause conditional hazard within
(L, R] (as in impute_ic_times) and assigns a cause. If the
cause is observed it is retained (the time is then drawn by a rejection step
so that it follows the cause-specific conditional density); if the cause is
unknown it is sampled with probability h_k(T)/h_\bullet(T) at the imputed
time, mirroring the cause-assignment in sim_pexp and the CIF
increment in get_cif.
impute_ic_cr(object, ic, cut, beta = NULL, cache = NULL, cause_known = NULL)
object |
A fitted |
ic |
A data frame as returned by |
cut |
The fixed vector of interval cut-points (shared across imputations). |
beta |
Coefficient vector to evaluate the hazard at. Defaults to
|
cache |
Optional pre-built cache from |
cause_known |
Optional vector (length |
A list with numeric time and character cause (both
length nrow(ic); cause is NA for censored rows).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.