lifetab                package:KMsurv                R Documentation

_C_r_e_a_t_e _c_o_h_o_r_t _l_i_f_e _t_a_b_l_e

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

     Create cohort life table.

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

     lifetab(tis, ninit, nlost, nevent)

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

     tis: a vector of end points of time intervals, whose length is 1
          greater than nlost and nevent. 

   ninit: the number of subjects initially entering the study. 

   nlost: a vector of the number of individuals lost follow or
          withdrawn alive for whatever reason. 

  nevent: a vector of the number of individuals who experienced the
          event 

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

     A data.frame with the following columns: 

   nsubs: the number of subject entering the intervals who have not
          experienced the event.

   nlost: the number of individuals lost follow or withdrawn alive for
          whatever reason. 

   nrisk: the estimated number of individuals at risk of experiencing
          the event. 

  nevent: the number of individuals who experienced the event. 

    surv: the estimated survival function at the start of the
          intervals. 

     pdf: the estimated probability density function at the midpoint of
          the intervals. 

  hazard: the estimated hazard rate at the midpoint of the intervals. 

 se.surv: the estimated standard deviation of survival at the beginning
          of the intervals. 

  se.pdf: the estimated standard deviation of the prbability density
          function at the midpoint of the intervals. 

se.hazard: the estimated standard deviation of the hazard function at
          the midpoint of the intervals

     The row.names are the intervals.

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

     Jun Yan jyan@stat.uiowa.edu

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

     tis <- c(0, 2, 3, 5, 7, 11, 17, 25, 37, 53, NA)
     nsubs <- c(927, 848, 774, 649, 565, 449, 296, 186, 112, 27)
     nlost <- c(2, 3, 6, 9, 7, 5, 3, rep(0, 3))
     nevent <- c(77, 71, 119, 75, 109, 148, 107, 74, 85, 27)

     lifetab(tis, nsubs[1], nlost, nevent)

