q.search               package:survrec               R Documentation

_C_a_l_c_u_l_a_t_e _t_h_e _s_u_r_v_i_v_a_l _t_i_m_e _o_f _a _s_e_l_e_c_t_e_d _q_u_a_n_t_i_l_e

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

     Auxiliary function called from survdiffr function. Given a
     survfitr object we obtain the  quantile from a survival function

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

     q.search(f, q = 0.5)

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

       f: survdifr object 

       q: quantile. Default is 0.5 

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

     Returns the time in a selected quantile

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

     data(MMC)
     fit<-survfitr(Survr(id,time,event)~1,data=MMC)

     # 75th percentile from the survival function
     q.search(fit,q=0.75)

