sim_exp_crossover: Simulation with crossover effect

Description Usage Arguments Value

View source: R/sim_exp_crossover.R

Description

sim_exp_crossover Simulating a trial with crossover effect. Control and experimental arm are both exponentially distributed, but control can have progression and might change to experimental arm

Usage

1
2
3
sim_exp_crossover(n_c = 100, n_e = 100, median_c = 10, median_e = 15,
  median_progression = 5, p_change = 0.5, end_event = 150,
  rec_period = 12, rec_power = 1, model = NULL)

Arguments

n_c

Number of patients in control arm

n_e

Number of patients in experimental arm

median_c

Median in control arm

median_e

Median in experimental arm

median_progression

Median for getting a progression in control arm

p_change

Probability that a patient in control that has a progression changes to experimental arm

end_event

Number of events to stop the study

rec_period

Recruitment period

rec_power

Recruitment follows a power model, this variable how the power looks

model

List containing all the variabels above

Value

dt Data table containing time, event and group/arm


borealexander/tslrt documentation built on March 26, 2020, 4:11 p.m.