calcDivRat: Calculate genetic diversity ratio and its standard error.

View source: R/functions.R

calcDivRatR Documentation

Calculate genetic diversity ratio and its standard error.

Description

Calculates diversity ratio index (Ar or Hert) between the reference population and studied population, calculates its standard error as a standard error of division (see the manuscript for details).

Usage

calcDivRat(ref, SEref, obs, SEobs, type = "U")

Arguments

ref

Sample-size corrected diversity index in reference population (Heterozygosity of Allelic Richness)

SEref

Standard error of ref.

obs

Diversity index in the studied population (Heterozygosity of Allelic Richness)

SEobs

Standard error of obs.

type

TYPE of the diversity index - A for allelic richness, He for expected heterozygosity. Changes the names of columns of the returned data frame. "U" for unknow is set as default if the user doesn't define this parameter.

Value

Returns a dataframe with two columns with the ratio and its standard error. Column names depend on the "type" defined in the function.

Author(s)

Tomaž Skrbinšek tomaz.skrbinsek@gmail.com

References

Skrbinšek T, Jelenčič M, Waits LP, Potočnik H, Kos I, Trontelj P(2012) Using a reference population yardstick to calibrate and compare genetic diversity reported in different studies: an example from the brown bear. Heredity, In press.

Examples

# For usage, see vignette
vignette("resamplediversity")

romunov/resamplediversity documentation built on July 31, 2023, 2:23 a.m.