home *** CD-ROM | disk | FTP | other *** search
-
- _T_e_s_t _S_u_r_v_i_v_a_l _C_u_r_v_e _D_i_f_f_e_r_e_n_c_e_s _T_e_s_t_s _i_f _t_h_e_r_e _i_s _a _d_i_f_f_e_r_-
- _e_n_c_e _b_e_t_w_e_e_n _t_w_o _o_r _m_o_r_e _s_u_r_v_i_v_a_l _c_u_r_v_e_s _u_s_i_n_g _t_h_e _G-_r_h_o
- _f_a_m_i_l_y _o_f _t_e_s_t_s, _o_r _f_o_r _a _s_i_n_g_l_e _c_u_r_v_e _a_g_a_i_n_s_t _a _k_n_o_w_n
- _a_l_t_e_r_n_a_t_i_v_e.
-
- survdiff(formula, data, rho=0, subset)
-
- _A_r_g_u_m_e_n_t_s:
-
- formula:
- a formula expression as for other survival models, of
- the form Surv(time, status) ~ predictors. For a one-
- sample test, the predictors must consist of a single
- offset(sp) term, where sp is a vector giving the sur-
- vival probability of each subject. For a k-sample
- test, each unique combination of predictors defines a
- subgroup. A strata term may be used to produce a stra-
- tified test.
-
- data:
- an optional data frame in which to interpret the vari-
- ables occurring in the formula.
-
- rho:
- a parameter that controls the type of test.
-
- subset:
- subset of the observations to be used in the fit.
-
- Value:
-
- a list with components:
-
- _A_r_g_u_m_e_n_t_s:
-
- n:
- the number of subjects in each group.
-
- obs:
- the weighted observed number of events in each group.
- If there are strata, this will be a matrix with one
- column per stratum.
-
- exp:
- the weighted expected number of events in each group.
- If there are strata, this will be a matrix with one
- column per stratum.
-
- chisq:
- the chisquare statistic for a test of equality.
-
- var:
- the variance matrix of the test.
-
- strata:
- optionally, the number of subjects contained in each
- stratum.
-
- This function implements the G-rho family of Harrington
- and Fleming (1982), with weights on each death of
- (S(t))^rho, where S is the Kaplan-Meier estimate of
- survival. When rho = 0 this is the log-rank or
- Mantel-Haenszel test, and when rho = 1 it is equivalent
- to the Peto & Peto modification of the Gehan-Wilcoxon
- test. If the right hand side of the formula consists
- only of an offset term, then a one sample test is done.
- To cause missing values in the predictors to be treated
- as a separate group, rather than being omitted, use the
- factor function with its exclude argument.
-
- Harrington, D. P. and Fleming, T. R. (1982). A class
- of rank test procedures for censored survival data.
- Biometrika (
- c
- k
- s
- l
- sh)fB69(
- c
- k
- s
- l
- sh)fR, 553-566.
-
- survdiff.print.
-
- _E_x_a_m_p_l_e_s:
-
- survdiff(Surv(futime, fustat) ~ rx)
- survdiff(Surv(time, status) ~ pat.karno + strata(inst), data=cancer)
- expect <- survexp(entry, birth, sex, futime)
- survdiff(Surv(futime, fustat) ~ offset(expecturv)) #One sample log-rank
-
-