home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / survival4 / survexp < prev    next >
Encoding:
Text File  |  1997-09-13  |  5.5 KB  |  130 lines

  1.     
  2.     _C_o_m_p_u_t_e _E_x_p_e_c_t_e_d _S_u_r_v_i_v_a_l _R_e_t_u_r_n_s _e_i_t_h_e_r _t_h_e _e_x_p_e_c_t_e_d _s_u_r_-
  3.     _v_i_v_a_l _o_f _a _c_o_h_o_r_t _o_f _s_u_b_j_e_c_t_s, _o_r _t_h_e _i_n_d_i_v_i_d_u_a_l _e_x_p_e_c_t_e_d
  4.     _s_u_r_v_i_v_a_l _f_o_r _e_a_c_h _s_u_b_j_e_c_t.
  5.     
  6.          survexp(formula, data, weights, subset, na.action,
  7.           times, cohort=T, conditional=F,
  8.           ratetable=survexp.us, scale=1, se.fit, model=F, x=F, y=F)
  9.     
  10.     _A_r_g_u_m_e_n_t_s:
  11.     
  12.           formula:
  13.          a formula object.  The response variable will be a vec-
  14.          tor of follow-up times, and is optional.  The predic-
  15.          tors will consist of optional grouping variables
  16.          separated by + operators (exactly as in survfit), along
  17.          with a ratetable() term.  This latter matches each sub-
  18.          ject to his/her expected cohort.
  19.     
  20.     data, weights, subset, na.action:
  21.          as in other modeling routines.  Weights are currently
  22.          ignored.
  23.     
  24.             times:
  25.          an optional vector of times at which the resulting sur-
  26.          vival curve should be evaluated.  If absent, the result
  27.          will be reported for each unique value of the vector of
  28.          follow-up times.
  29.     
  30.            cohort:
  31.          If false, each subject is treated as a subgroup of size
  32.          1.
  33.     
  34.       conditional:
  35.          If y is missing in the formula, this argument is
  36.          ignored.  Otherwise it is an indicator of whether y
  37.          includes death times, which leads to conditional
  38.          expected survival, or y includes only the potential
  39.          censoring times.
  40.     
  41.         ratetable:
  42.          a table of event rates, such as survexp.uswhite, or a
  43.          fitted Cox model.
  44.     
  45.             scale:
  46.          a scaling for the results.  As most rate tables are in
  47.          units/day, a value of 365.24 would cause the output to
  48.          be reported in years.
  49.     
  50.           npoints:
  51.          calculate intermediate results at npoints values,
  52.          evenly spaced on the range of y.  The usual (exact)
  53.          calculation is done at each unique 'y' value; for very
  54.          large data sets this may incur too much storage for the
  55.          scratch array.  For a prediction from a Cox model this
  56.          arument is ignored.
  57.     
  58.            se.fit:
  59.          compute the standard error of the predicted survival.
  60.          The default is to compute this whenever the routine
  61.          can, which at this time is only for the Ederer method
  62.          and a Cox model as the rate table.
  63.     
  64.       model, x, y:
  65.          flags to control what is returned.  If any of these is
  66.          true, then the model frame, the model matrix, and/or
  67.          the vector of response times will be returned as com-
  68.          ponents of the final result, with the same names as the
  69.          flag arguments.
  70.     
  71.          Value:
  72.     
  73.          if cohort=T an object of class survexp, otherwise a
  74.          vector of per-subject expected survival values.  The
  75.          former contains the number of subjects at risk and the
  76.          expected survival for the cohort at each requested
  77.          time.  Individual expected survival is ususally used in
  78.          models or testing, to correct for the age and sex com-
  79.          position of a group of subjects.  For instance, assume
  80.          that birth date, entry date onto the study,sex and
  81.          actual survival time are all known for a group of sub-
  82.          jects.  The uswhite population tables contain expected
  83.          death rates based on calendar year, sex and age.  Then
  84.     
  85.          haz <- -log(survexp(death.time ~ ratetable(sex=sex, year=entry.dt, age=(birth.dt-entry.dt)), cohort=F))
  86.     gives for each subject the total hazard experienced up to
  87.     their observed death time or censoring time.  This probabil-
  88.     ity can be used as a rescaled time value in models:
  89.     
  90.          glm(status ~ 1 + offset(log(haz)), family=poisson)
  91.            glm(status ~ x + offset(log(haz)), family=poisson)
  92.     In the first model, a test for intercept=0 is the one sample
  93.     log-rank test of whether the observed group of subjects has
  94.     equivalent survival to the baseline population.  The second
  95.     model tests for an effect of variable x after adjustment for
  96.     age and sex.  Cohort survival is used to produce an overall
  97.     survival curve.  This is then added to the Kaplan-Meier plot
  98.     of the study group for visual comparison between these sub-
  99.     jects and the population at large.  There are three common
  100.     methods of computing cohort survival.  In the "exact method"
  101.     of Ederer the cohort is not censored; this corresponds to
  102.     having no response variable in the formula.  Hakulinen
  103.     recommends censoring the cohort at the anticipated censoring
  104.     time of each patient, and Verhuel recommends censoring the
  105.     cohort at the actual observation time of each patient.  The
  106.     last of these is the conditional method.  These are obtained
  107.     by using the respective time values as the follow-up time or
  108.     response in the formula.
  109.     
  110.          References:
  111.     
  112.          G. Berry.  The analysis of mortality by the subject-
  113.          years method.  Biometrics 1983, 39:173-84.  F Ederer, L
  114.          Axtell, and S Cutler.  The relative survival rate: a
  115.          statistical methodology. Natl Cnacer Inst Monogr 1961,
  116.          6:101-21.  T. Hakulinen.  Cancer survival corrected for
  117.          heterogeneity in patient withdrawal.  Biometrics 1892,
  118.          38:933.  H. Verheul, E. Dekker, P. Bossuyt, A. Moulijn,
  119.          and A. Dunning.  Backround mortality in clinical sur-
  120.          vival studies.  Lancet 1993, 341:872-5.
  121.     
  122.          survfit, survexp.us, survexp.fit, personyr, date
  123.     
  124.     _E_x_a_m_p_l_e_s:
  125.     
  126.          efit <- survexp( ~ ratetable(sex=sex, year=entry.dt, age=entry.dt-birth.dt))
  127.          plot(survfit(Surv(futime, status) ~1))
  128.          lines(efit)
  129.     
  130.