calcDivRat | R Documentation |
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).
calcDivRat(ref, SEref, obs, SEobs, type = "U")
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. |
Returns a dataframe with two columns with the ratio and its standard error. Column names depend on the "type" defined in the function.
Tomaž Skrbinšek tomaz.skrbinsek@gmail.com
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.
# For usage, see vignette
vignette("resamplediversity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.