Description Usage Arguments Value See Also
View source: R/randomization.R
Compute sampling weights to sample from a population with osberved probabilities by binning.
1 | weightsByBin(obs, population, breaks = 50)
|
obs |
vector of observed values according to which the sampling should be done (e.g distances observed for paralog gene pairs). |
population |
vector of all values in the total population from which one wants to sample (e.g distances of all gene pairs) |
breaks |
breaks used for sampling resolution (see |
numeric vector with sampling weights to sample from population with
probabilities observed in obs.
weightsByFactorFreq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.