sim_crossover_delay: Simulation with treatment switching at a time

Description Usage Arguments Value

View source: R/sim_crossover_delay.R

Description

sim_crossover_delay Simulating a trial with crossover effect. Control and experimental arm are both exponentially distributed, but control switches treatment after a delay time

Usage

1
2
3
sim_crossover_delay(n_c = 100, n_e = 100, median_c_1 = 10,
  median_c_2 = 12.5, median_e = 15, delay = 3, p_change = 1,
  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_1

Median in control arm for the first time period

median_c_2

Median in control arm for the second time period

median_e

Median in experimental arm

delay

Time at which to change treatment in control

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.