sim_dat_mult_trials_exp_nocovar {BPrinStratTTE}R Documentation

Simulate data from multiple two-arm trials with an exponentially distributed time-to-event endpoint and no predictor of the intercurrent event

Description

Simulate data from multiple two-arm trials with an exponentially distributed time-to-event endpoint and no predictor of the intercurrent event

Usage

sim_dat_mult_trials_exp_nocovar(n_iter, params)

Arguments

n_iter

Positive integer value, number of trials to be simulated.

params

List of data parameters as used in sim_dat_one_trial_exp_nocovar.

Value

A list of length n_iter, containing objects of class tibble(), each containing one simulated trial dataset.

See Also

sim_dat_mult_trials_exp_covar()

Examples

d_params_nocovar <- list(
  n = 500L,
  nt = 250L,
  prob_ice = 0.5,
  fu_max = 336L,
  prop_cens = 0.15,
  T0T_rate = 0.2,
  T0N_rate = 0.2,
  T1T_rate = 0.15,
  T1N_rate = 0.1
)
dat_mult_trials <- sim_dat_mult_trials_exp_nocovar(
  n_iter = 3L,
  params = d_params_nocovar 
)
lapply(dat_mult_trials, dim)
head(dat_mult_trials[[1]]) 


[Package BPrinStratTTE version 0.0.7 Index]