allelefreqs              package:hapsim              R Documentation

_E_s_t_i_m_a_t_e_s _a_l_l_e_l_e _f_r_e_q_u_e_n_c_i_e_s

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

     Estimates allele frequencies from a binary matrix

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

     allelefreqs(dat)

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

     dat: A binary matrix, rows are haplotypes and columns are binary
          markers 

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

     A list containing: 

   freqs: Vector of allele "0" frequencies

all.polym: If TRUE, all loci are polymorphic

non.polym: Vector of non-polymorphic loci, if any

_A_u_t_h_o_r(_s):

     Giovanni Montana

_R_e_f_e_r_e_n_c_e_s:

     Montana, G. HapSim: a simulation tool for generating haplotype
     data with pre-specified allele frequencies and LD coefficients.
     2005.

_E_x_a_m_p_l_e_s:

     data(ACEdata)
     x <- allelefreqs(ACEdata)
     hist(x$freqs)

