Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

test.g

Tests the significance of the effect of level on genetic differentiation


Description

Tests the significance of the effect of level on genetic differentiation

Usage

test.g(data = data, level, nperm = 100,...)

Arguments

data

a data frame containing the genotypes for the different loci

level

A vector containing the assignment of each observation to its level

nperm

The number of permutations to carry out for the test

...

Mainly here to allow passing diploid=FALSE if necessary

Value

g.star

A vector containing all the generated g-statistics, the last one beeing the observed

p.val

The p-value associated with the test

Author(s)

Jerome Goudet jerome.goudet@unil.ch

Examples

data(gtrunchier)
attach(gtrunchier)
test.g(gtrunchier[,-c(1,2)],Locality)

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.