Description Usage Arguments Value Author(s) Examples
Makes multiple simulates of a clinical trial with retricted randomizaion procedures
1 | simulate_rr(nsim, nsbj, w, proc, proc_param, distr, distr_param)
|
nsim |
number of simulation runs. |
nsbj |
number of subjects to randomize. |
w |
vector of fixed allocation ratio (integers with GCD = 1). |
proc |
name of randomization procedure |
proc_param |
tuning parameter of randomization procedure (NA for |
distr |
distribution of response |
distr_param |
parameter(s) of the response distribution (a list with numeric vector(s) with the
same length as |
a list with three items:
treatment
– a matrix of treatment assignments with nsim
rows
and nsbj
columns, i.e. r-th row contains tretament assignments of r-th
simulation,
response
– a matrix of responses with nsim
rows
and nsbj
columns, i.e. r-th row contains responses of r-th
simulation,
op
– a data frame which contains operating characteristics:
MI
– maximum imbalance,
AFI
– average forcing index,
AMPM1
– average momentum of probability mass based on expected predicted imbalance,
ACMPM1
– average cumulative momentum of probability mass based on expected predicted imbalance,
AMPM2
– average momentum of probability mass based on the expected imbalance,
ACMPM2
– average cumulative momentum of probability mass based on expected predicted imbalance,
ASD
– average standard deviation of allocation proportions,
probability
– a data frame with unconditional allocation probabilities vs number of subjects
for each treatment;
allocation
– a data frame with allocation proportions in the end of a trial
vs number of simulations for each treatment (could be usefull to make a boxplot of allocation proportion distribution).
Yevgen Ryeznik (yevgen.ryeznik@gmail.com), Oleksandr Sverdlov
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.