View source: R/approxtoexact_func.R
approxtoexact_func | R Documentation |
Convert the approximate allocation (proportion) to exact allocation (integer) without constraint
approxtoexact_func(n, w)
n |
Sample size, must be a positive integer |
w |
Approximate allocation/proportion, must be a real-valued vector, can get from running liftone_constrained_GLM or liftone_constrained_MLM |
allocation is the exact allocation or integer value of the number of subjects sampled from the group
exact_design = approxtoexact_func(n=600, w=c(0.2593526, 0.0000000, 0.0000000,
0.1565024, 0.2891565, 0.0000000, 0.0000000, 0.2949885))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.