Simulate trial data using Poisson process for accrual rate
1 2 3 | sim_trial_dat(sim_id = 1, p1tru = 0.1, p2tru = 0.1, nmax = 100,
enro_rate = 1, enro_intensity = function(t) 1,
resp_delay = function(n) runif(n))
|
sim_id |
The id for the simulated trial data |
p1tru |
True response rate under control |
p2tru |
True response rate under treatment |
nmax |
The maximum total sample size |
enro_rate |
The baseline acrrual rate |
enro_intensity |
Function for changing acrrual intensity |
resp_delay |
Function returning response time value |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.