transrate              package:relsurv              R Documentation

_R_e_o_r_g_a_n_i_z_e _D_a_t_a _i_n_t_o _a _R_a_t_e_t_a_b_l_e _O_b_j_e_c_t

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

     The function assists in reorganizing certain types of data into a
     ratetable object.

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

     transrate(men,women,yearlim,int.length=1)

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

     men: a matrix containing the yearly (conditional) probabilities of
          one year survival for men. Rows represent age (increasing 1
          year per line,starting with 0), the columns represent cohort
          years (the limits are in 'yearlim', the increase is in
          'int.length'. 

   women: a matrix containing the yearly (conditional) probabilities of
          one year survival for women. 

 yearlim: the first and last cohort year given in the tables.

int.length: the length of intervals in which cohort years are given.

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

     This function only applies for ratetables that are organized by
     age, sex and year.

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

     An object of class 'ratetable'.

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

     'ratetable'.

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

     men <- cbind(exp(-365*exp(-14.5+.08*(0:100))),exp(-365*exp(-14.7+.085*(0:100))))
     women <- cbind(exp(-365*exp(-15.5+.085*(0:100))),exp(-365*exp(-15.7+.09*(0:100))))
     table <- transrate(men,women,yearlim=c(1980,1990),int.length=10)

