PocSimMIN.sim {carat} | R Documentation |
Allocates patients to one of two treatments using Pocock and Simon's method proposed by Pocock S J, Simon R (1975) <doi:10.2307/2529712>, by simulating covariate profiles under the assumption of independence between covariates and levels within each covariate.
PocSimMIN.sim(n = 1000, cov_num = 2, level_num = c(2, 2),
pr = rep(0.5, 4), weight = NULL, p = 0.85)
n |
the number of patients. The default is |
cov_num |
the number of covariates. The default is |
level_num |
a vector of level numbers for each covariate. Hence the length of |
pr |
a vector of probabilities. Under the assumption of independence between covariates, |
weight |
a vector of weights for within-covariate-margin imbalances. It is required that at least one element is larger than 0. If |
p |
the biased coin probability. |
See PocSimMIN
.
See PocSimMIN
.
Pocock S J, Simon R. Sequential treatment assignment with balancing for prognostic factors in the controlled clinical trial[J]. Biometrics, 1975: 103-115.
See PocSimMIN
for allocating patients with complete covariate data; See PocSimMIN.ui
for the command-line user interface.