basehaz               package:survival               R Documentation

_C_o_m_p_u_t_e _t_h_e _b_a_s_e_l_i_n_e _s_u_r_v_i_v_a_l _c_u_r_v_e _f_o_r _a _C_o_x _m_o_d_e_l

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

     Compute the baseline survival curve for a Cox model.

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

     basehaz(fit, centered = TRUE)

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

     fit: The result of a 'coxph' fit.

centered: If TRUE, the resultant curve is for a hypothetical subject
          whose covariate values are the corresponding means from the
          original data, otherwise for a hypothetical subject with a
          mean vector of zero.

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

     This function exists primarily because users will look for the
     phrase 'baseline hazard' (often SAS converts looking for familiar
     keywords.) The primary function for creating a survival curve is
     'survfit', which this calls.  See that manual page for more
     options, including confidence limits and the ability to use other
     covariate vectors.  The result of 'survfit' also has print, plot
     and summary methods that make it far more useful.

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

     a data frame with components 

    time: The sorted vector of unique time points (those at which an
          event occurred

  hazard: The baseline hazard function

  strata: If 'fit' was a stratified Cox model, the strata. There will
          be one survival curve per strata.

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

     'survfit'

