popstruct {rmetasim}R Documentation

Calculates Weir and Cokerham's theta

Description

Takes data in the format returned by landscape.to.rtheta() and returns estimates of Fst in the form of theta

Usage

  thetamat <- popstruct(genin)

Arguments

genin a dataframe or matrix with columns corresponding to population, class, individual, locus, allelic position, and allele ID. The matrix is most easily generated by using the function landscape.to.rtheta()

Details

Calculates theta using a nested analysis of variance approach first outlined by Weir and Cockerham in 1984

Value

A matrix with two columns. One gives estimates of theta and the other estimates of F-hat. Rows correspond to the different loci.

See Also

Fst.landscape, landscape.to.rtheta


[Package rmetasim version 1.0.8 Index]