View source: R/constrained_uniform.R
constrained_uniform | R Documentation |
Find (constrained) uniform exact allocation of the study for bounded design
constrained_uniform(Ni, nsample)
Ni |
a vector with size m, upper bound for exact design of each category/stratification group, if unconstrained, use Inf vector, the function will return unbounded uniform allocation |
nsample |
a number, the sample size |
n is the constrained/unconstrained uniform exact allocation
constrained_uniform(Ni=c(50, 40, 10, 200, 150, 50), nsample=200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.