sample_uneq_prob: Sampling with unequal selection probabilities

Description Usage Arguments Author(s) Examples

View source: R/sample_uneq_prob.R

Description

This is a wraper of sampling:UPbrewer

Usage

1
sample_uneq_prob(a_pop, relative_prob_wgt, ssize)

Arguments

a_pop

a population

relative_prob_wgt

relative probability weights

ssize

sample size

Author(s)

Lingyun (Larry) Zhang lyzhang10@gmail.com

Examples

1
2
3
popu <- letters[1:3]
relative_prob <- c(0.5, 0.3, 0.1)
sample_uneq_prob(a_pop = popu, relative_prob_wgt = relative_prob, ssize = 2)

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