Function to simulate data with treatment assignments from Covariate Adaptive Randomization Scheme
1 2 | simulateData(mean.s, mean.t, N = 500, sigma0, sigma, p1, p2, rho,
design = "Pocock", tau1, tau2)
|
mean.s |
Mean of the short term response |
mean.t |
Mean long-term response |
N |
Total Sample Size |
sigma0 |
sigma0 in the bivariate normal distribution |
sigma |
sigma in bivariate normal distribution |
p1 |
Probability of success in first covariate |
p2 |
Probability of success in second covariate |
rho |
rho in bivariate normal distribution |
design |
Covariate Adapative Randomization scheme. Default is Pocock |
tau1 |
Tau1 is the weight on the first covariate |
tau2 |
Tau2 is the weight on the second covariate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.