sim_trial_dat: Simulate trial data using Poisson process for accrual rate

Description Usage Arguments

Description

Simulate trial data using Poisson process for accrual rate

Usage

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))

Arguments

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


jatotterdell/optimum documentation built on May 29, 2019, 1:24 p.m.