plot.gcmrec              package:gcmrec              R Documentation

_P_l_o_t _M_e_t_h_o_d _f_o_r _a_n _o_b_j_e_c_t _o_f _c_l_a_s_s _g_c_m_r_e_c.

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

     Plots estimated baseline survival and hazard functions from an
     object of class `gcmrec'.

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

     ## S3 method for class 'gcmrec':
     plot(x, type.plot = "surv", ...)

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

       x: Object of class 'gcmrec' (output from calling 'gcmrec'
          function).

type.plot: a character string specifying the type of curve. Possible
          value are "hazard", or "survival". The default is "hazard".
          Only the first words are required, e.g "haz", "su"

     ...: Other graphical parameters

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

     Print a plot of class 'gcmrec'

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

     'print.gcmrec'

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

     data(lymphoma)

     mod<-gcmrec(Survr(id,time,event)~as.factor(distrib),data=lymphoma,s=1000)

     # baseline survivor function

     plot(mod)

     # baseline hazard function

     plot(mod,type="haz")

