Description Usage Arguments Value See Also
View source: R/randomization.R
Computes weights for sampling from a population according to the frequencies of a variable (factor) observed in an observed set.
1 | weightsByFactorFreq(obs, population)
|
obs |
vector with values (e.g. factor) as observed set. |
population |
vector with values (e.g. factor) in the population. |
numeric vector with sampling weights to sample from population
with probabilities observed in obs
.
weightsByBin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.