predictSurvIndividual: Predict individual survival probabilities

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predictSurvIndividual.R

Description

Function to extract the predicted probabilities at the individual event times that have been used for fitting a prodlim object.

Usage

1

Arguments

object

A fitted object of class "prodlim".

lag

Integer. ‘0’ means predictions at the individual times, 1 means just before the individual times, etc.

Value

A vector of survival probabilities.

Author(s)

Thomas A. Gerds tag@biostat.ku.dk

See Also

predict.prodlim,predictSurv,

Examples

1
2
3
 SurvFrame <- data.frame(time=1:10,status=rbinom(10,1,.5))
 x <- prodlim(formula=Hist(time=time,status!=0)~1,data=SurvFrame)
 predictSurvIndividual(x,lag=1)


prodlim documentation built on May 19, 2017, 3:53 p.m.
Search within the prodlim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.