haplodata               package:hapsim               R Documentation

_H_a_p_l_o_t_y_p_e _o_b_j_e_c_t _c_r_e_a_t_o_r

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

     Creates an haplotype data object needed for simulating haplotypes
     with 'haplosim'. This object also contains some summary statistics
     about the real data.

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

     haplodata(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: Allele frequencies

     cor: Correlation matrix (LD coefficients) 

     div: Locus-specific diversity measure 

     cov: Covariance matrix for the normal distribution

_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.

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

     See also ' haplosim '

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

     data(ACEdata)

     # creates the haplotype object
     x <- haplodata(ACEdata) 

     # simulates 100 random haplotypes
     y <- haplosim(100, x) 

