Description Usage Arguments Author(s) Examples
View source: R/proportion_allocation.R
This is to return proportionally allocated sample sizes
1 | proportional_allocation(n, a_vec)
|
n |
sample size |
a_vec |
a vector, which contains sizes of strata |
Lingyun (Larry) Zhang lyzhang10@gmail.com
1 2 3 | a <- c(100, 200, 300, 200, 400, 500)
(b <- proportional_allocation(200, a))
(sum(b))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.