approxtoexact_func {CDsampling} | R Documentation |
Convert the approximate allocation (proportion) to exact allocation (integer) without constraint
Description
Convert the approximate allocation (proportion) to exact allocation (integer) without constraint
Usage
approxtoexact_func(n, w)
Arguments
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 |
Value
allocation is the exact allocation or integer value of the number of subjects sampled from the group
Examples
exact_design = approxtoexact_func(n=600, w=c(0.2593526, 0.0000000, 0.0000000,
0.1565024, 0.2891565, 0.0000000, 0.0000000, 0.2949885))
[Package CDsampling version 0.1.3 Index]