popstruct {rmetasim} | R Documentation |
Takes data in the format returned by landscape.to.rtheta()
and
returns estimates of Fst in the form of theta
thetamat <- popstruct(genin)
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() |
Calculates theta using a nested analysis of variance approach first outlined by Weir and Cockerham in 1984
A matrix with two columns. One gives estimates of theta and the other estimates of F-hat. Rows correspond to the different loci.
Fst.landscape, landscape.to.rtheta