KM                   package:rhosp                   R Documentation

_p_l_o_t_s _a _s_u_r_v_i_v_a_l _f_u_n_c_t_i_o_n _w_i_t_h _a _K_a_p_l_a_n-_M_e_i_e_r _v_a_r_i_a_n_t

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

     plots the survival function of patients knowing censored data.
     Model : a variant of Kaplan-Meier's model

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

     KM(fileName, toplot = TRUE, header = TRUE)

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

fileName: the file with the data use

  toplot: a logical variable to plot the result of this estimation 

  header: a logical for : has the input file an header 

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

a plot of the survival function: 

a plot of the theoretical distribution of our model with exponential stays and a constant side effect probability: 

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

     CJ

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

     #KM("data.rda",TRUE,TRUE)

