survfit.rsadd {relsurv}R Documentation

Compute a Predicited Survival Curve

Description

Computes a predicted survival curve based on the additive model estimated by rsadd function.

Usage

survfit.rsadd(object, newdata, se.fit = TRUE, conf.int = 0.95, individual = FALSE, 
    conf.type = c("log", "log-log", "plain", "none"))

Arguments

object a rsadd object
newdata a data frame with the same variable names as those that appear in the rsadd formula. The curve(s) produced will be representative of a cohort who's covariates correspond to the values in newdata.
se.fit a logical value indicating whether standard errors should be computed. Default is TRUE.
conf.int the level for a two-sided confidence interval on the survival curve(s). Default is 0.95.
individual a logical value indicating whether the data frame represents different time epochs for only one individual (T), or whether multiple rows indicate multiple individuals (F, the default). If the former only one curve will be produced; if the latter there will be one curve per row in newdata.
conf.type One of none, plain, log (the default), or log-log. The first option causes confidence intervals not to be generated. The second causes the standard intervals curve +- k *se(curve), where k is determined from conf.int. The log option calculates intervals based on the cumulative hazard or log(survival). The last option bases intervals on the log hazard or log(-log(survival)).

Details

When predicting the survival curve, the ratetable values for future years will be equal to those of the last given year. The same ratetables will be used for fitting and predicting. To predict a relative survival curve, use rs.surv.rsadd.

Value

a survfit object; see the help on survfit.object for details. The survfit methods are used for print, plot, lines, and points.

References

package
Pohar M., Stare J. "Relative survival analysis in R." Computer Methods and Programs in Biomedicine, 81: 272-278, 2006.
relative survival
Pohar, M., Stare, J. "Making relative survival analysis relatively easy." Computers in biology and medicine, 37: 1741-1749, 2007.

See Also

survfit, survexp, rs.surv

Examples

data(slopop)
data(rdata)
fit <- rsadd(Surv(time,cens)~sex+ratetable(age=age*365,sex=sex,
      year=year),ratetable=slopop,data=rdata,method="EM")
survfit.rsadd(fit,newdata=data.frame(sex=1,age=60,year=17000))

[Package relsurv version 1.5 Index]