Description Usage Arguments Author(s) Examples
View source: R/sample_uneq_prob.R
This is a wraper of sampling:UPbrewer
1 | sample_uneq_prob(a_pop, relative_prob_wgt, ssize)
|
a_pop |
a population |
relative_prob_wgt |
relative probability weights |
ssize |
sample size |
Lingyun (Larry) Zhang lyzhang10@gmail.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.