powered by
Computing the Probability Transform Incidence Density
prop_trans_inc_dens(data, tau)
(vector) with the following entries:
vector
ae_prob: Estimated probability of AE.
ae_prob
ae_prob_var: Variance of that estimate.
ae_prob_var
(data.frame) with columns including
data.frame
time_to_event: Time to the first AE, death or soft competing event.
time_to_event
type_of_event: 0 for censored, 1 for AE, 2 for death, 3 for soft competing event.
type_of_event
(number) milestone at which Probability Transform Incidence Density is computed.
number
set.seed(123) dat <- generate_data(n = 5, cens = c(2, 5), haz_ae = 2, haz_death = 3, haz_soft = 5) prop_trans_inc_dens(dat, tau = 4)
Run the code above in your browser using DataLab