proportional_allocation: Proportional allocation

Description Usage Arguments Author(s) Examples

View source: R/proportion_allocation.R

Description

This is to return proportionally allocated sample sizes

Usage

1

Arguments

n

sample size

a_vec

a vector, which contains sizes of strata

Author(s)

Lingyun (Larry) Zhang lyzhang10@gmail.com

Examples

1
2
3
a <- c(100, 200, 300, 200, 400, 500)
(b <- proportional_allocation(200, a))
(sum(b))

zhanglynz/myhelper documentation built on Sept. 26, 2021, 3:33 a.m.