View source: R/simulatetrials.R
Simulates 2 look trial and calculates the overall type I error rate.
1 2 3 | simulatetrials(N1 = 200, N = 500, n.trt = 3, mean.s = NULL,
mean.t = NULL, p1 = 0.5, p2 = 0.5, sigma0 = 1, sigma = 1,
rho = 0.5, nsim = 1000, design = "Pocock", tau1 = 1, tau2 = 1)
|
N1 |
Number of patients with secondary endpoint available at first analysis |
N |
The total number of patients in the trial |
n.trt |
The number of treatments in the trial |
mean.s |
The mean for short term endpoint sample groups |
mean.t |
Mean for the long term endpoint sample groups |
p1 |
The covariate value for the first covariate |
p2 |
THe covariate value for the second covariate |
sigma0 |
sigma0 in the bivariate normal distribution |
sigma |
is the known sigma for the population |
rho |
is the known correlation between endpoints. |
nsim |
The number of simulation runs. The default is 1000 |
design |
The chosen covariate adaptive randomization procedure. Default is Pocock's design |
tau1 |
The chosen covariate adaptive randomization procedure. Default is Pocock's design |
tau2 |
The chosen covariate adaptive randomization procedure. Default is Pocock's design |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.