powered by
This function displays estimates of the conditional probability function at timepoints chosen by the user
# S3 method for cpf predict(object, timepoints, ...)
An object of class cpf
cpf
Vector of timepoints
Not used
A data.frame with the following columns
The given timepoints
Conditional probability estimates
Variance estimates
Lower confidence limit
Upper confidence limit
Number of individuals at risk just before the timepoints
Group, if any
# NOT RUN { data(mgus) mgus$A <- ifelse(mgus$age < 64, 0, 1) test <- cpf(Hist(time, ev)~A, data = mgus) predict(test, c(10, 20)) # }
Run the code above in your browser using DataLab