SHNe | R Documentation |
Use formulas from Prunier et al. to calculate di and dhm
SHNe(n.samples,
pop.size,
output = 'df')
n.samples |
Specify the number of samples (populations) included in your analysis |
pop.size |
Provide a vector of values that indicates Ne for each sampled population. These values should be ordered the same as your sample populations |
output |
Default is 'df', will return a data frame with distance measures. If 'matrix' is specified, then a list containing a matrix for each distance measure is produced. |
Either a data frame or a list of matrices containing the SHNe metrics
Bill Peterman <Peterman.73@osu.edu>
Prunier, J. G., V. Dubut, L. Chikhi, and S. Blanchet. 2017. Contribution of spatial heterogeneity in effective population sizes to the variance in pairwise measures of genetic differentiation. Methods in Ecology and Evolution 8:1866-1877.
#' @examples ## Create vector of Ne Ne <- rep(c(5, 25, 100), each = 3) SHNe.out <- SHNe(n.samples = length(Ne), pop.size = Ne )
## Not run:
## *** TO BE COMPLETED *** ##
## End (Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.