View source: R/predictSurvIndividual.R
predictSurvIndividual | R Documentation |
Function to extract the predicted probabilities at the individual event times that have been used for fitting a prodlim object.
predictSurvIndividual(object, lag = 1)
object |
A fitted object of class "prodlim". |
lag |
Integer. ‘0’ means predictions at the individual times, 1 means just before the individual times, etc. |
A vector of survival probabilities.
Thomas A. Gerds tag@biostat.ku.dk
predict.prodlim
,predictSurv
,
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.