View source: R/simulate_trial_with_control.R
simulate_continuous_outcome | R Documentation |
Simulate continuous outcome data
simulate_continuous_outcome( nsubj = 400, accrual = function(n) { cumsum(rexp(n, 3)) }, means = rep(40, 4), sigma = 5, trunc = FALSE )
nsubj |
The number of participants to simulate |
accrual |
A function which determines rate of accrual in weeks, default assumes mean of 3 per week |
means |
The mean response under each treatment |
sigma |
Variance of response (assumed constant over treatments) |
trunc |
Bound the outcome between 0 and 52 and make discrete. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.