haplofreqs              package:hapsim              R Documentation

_H_a_p_l_o_t_y_p_e _f_r_e_q_u_e_n_c_i_e_s

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

     Compute haplotype frequencies

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

     haplofreqs(dat, firstl, lastl)

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

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

  firstl: Position of the first locus 

   lastl: Position of the last locus 

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

     A vector of haplotype frequencies

_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)
     freqs <- haplofreqs(ACEdata, 17, 22)

