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

ibn-salem/genepair documentation built on Aug. 7, 2017, 9:47 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.