get_true_cuminc: Compute true cumulative incidence (in simulation study)

View source: R/prediction-helpers.R

get_true_cumincR Documentation

Compute true cumulative incidence (in simulation study)

Description

Relevant only in context of simulation study when generating based on two variables X and Z (also used in vignette)

Usage

get_true_cuminc(ev1_pars, ev2_pars, combo, times)

Arguments

ev1_pars

List parameters for weibull event 1

ev2_pars

List parameters for weibull event 2

combo

Covariate combo, e.g. list("val_X" = 1, "val_Z" = 1)

times

Vector of timepoints to evaluate cuminc at

Value

True cumulative incidence at given times.


survival-lumc/CauseSpecCovarMI documentation built on June 16, 2022, 9:51 a.m.