pedigree               package:kinship               R Documentation

_C_r_e_a_t_e _p_e_d_i_g_r_e_e _s_t_r_u_c_t_u_r_e

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

     Create pedigree structure in format needed for plotting function.

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

     pedigree(id, dadid, momid, sex, affected, status, relations)

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

      id: Identification variable for individual 

   dadid: Identification variable for father 

   momid: Identification variable for mother 

     sex: Gender of individual noted in `id'.
          Character("male","female","unknown", "terminated") or numeric
          (1="male", 2="female", 3="unknown", 4="terminated") allowed. 

affected: One variable, or a matrix, indicating affection status. 
          Assumed that 1="unaffected", 2="affected", NA or 0 =
          "unknown".  

  status: Status (0="censored", 1="dead") 

relations: A matrix with 3 columns (id1, id2, code) specifying special
          relationship between pairs of individuals. Codes:
          1=Monozygotic twin,  2=Dizygotic twin, 3=Twin of unknown
          zygosity, 4=Spouse and no children in pedigree   

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

     An object of class pedigree.

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

     'plot.pedigree'

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

     ## Not run: 
     ptemp <- pedigree(id=d10$upn, dadid=d10$dadid,momid=d10$momid, 
                       sex=d10$sex, affected=d10$affect)
     plot(ptemp)
     ## End(Not run)

