This procedure permits to test if two groups have significant differences in expected heterozygosity (Hs). The test statistic used is simply the difference in Hs between the two groups 'x' and 'y':

1 |

`x` |
a genind object. |

`y` |
a genind object. |

`n.sim` |
the number of permutations to be used to generate the reference distribution. |

`alter` |
a character string indicating the alternative hypothesis |

*Hs(x) - Hs(y)*

Individuals are randomly permuted between groups to obtain a reference distribution of the test statistics.

an object of the class randtest

Thibaut Jombart t.jombart@imperial.ac.uk

`Hs`

to compute Hs for different populations;
`as.randtest`

for the class of Monte Carlo tests.

1 2 3 4 5 6 7 8 9 10 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.