popstruct              package:rmetasim              R Documentation

_C_a_l_c_u_l_a_t_e_s _W_e_i_r _a_n_d _C_o_k_e_r_h_a_m'_s _t_h_e_t_a

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

       thetamat <- popstruct(genin)

_A_r_g_u_m_e_n_t_s:

   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()'

_D_e_t_a_i_l_s:

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

_V_a_l_u_e:

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

_S_e_e _A_l_s_o:

     Fst.landscape, landscape.to.rtheta

