residuals.rsadd           package:relsurv           R Documentation

_C_a_l_c_u_l_a_t_e _R_e_s_i_d_u_a_l_s _f_o_r _a _r_s_a_d_d _F_i_t

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

     Calculates partial residuals for an additive relative survival
     model.

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

        ## S3 method for class 'rsadd':
        residuals(object,type="schoenfeld",...)

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

  object: an object inheriting from class 'rsadd', representing a
          fitted additive relative survival model. Typically this is
          the output from the 'rsadd' function. 

    type: character string indicating the type of residual desired. 
          Currently only Schoenfeld residuals are implemented. 

     ...: other arguments.

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

     A list of the following values is returned: 

     res: a matrix containing the residuals for each variable.

    varr: the variance for each residual

   varr1: the sum of 'varr'.

   kvarr: the derivative of each residual, to be used in 'rs.zph'
          function.

  kvarr1: the sum of 'kvarr'.

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

     'rsadd'.

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

     data(slopop)
     data(rdata)
     fit <- rsadd(Surv(time,cens)~sex+ratetable(age=age*365,sex=sex,year=year),
            ratetable=slopop,data=rdata,int=5)
     sresid <- residuals.rsadd(fit)

