inc_prop {savvyr}R Documentation

Computing the Incidence Proportion

Description

Computing the Incidence Proportion

Usage

inc_prop(data, tau)

Arguments

data

(data.frame)
with columns including:

  • time_to_event: Time to the first AE, death or soft competing event.

  • type_of_event: 0 for censored, 1 for AE, 2 for death, 3 for soft competing event.

tau

(numeric)
milestone at which incidence proportion is computed.

Value

(vector)
with the following entries:

Examples

set.seed(123)
dat <- generate_data(
  n = 5,
  cens = c(2, 5),
  haz_ae = 2,
  haz_death = 3,
  haz_soft = 5
)

inc_prop(dat, tau = 4)


[Package savvyr version 0.1.0 Index]