predict.joinpoint: Predict method for join point models

Description Usage Arguments Value Examples

View source: R/CoxFit.R

Description

Predicted values based on join point object

Usage

1
2
## S3 method for class 'joinpoint'
predict(object, ...)

Arguments

object

Object of class "joinpoint"

...

Two more arguments: years, intervals may be used to specify which years and intervals to predict.

Value

A data frame which contains the predicted interval survivals and cumulative survivals

Examples

1
2
3
4
5
data(prostate);
fit = joinpoint(~Year, data=prostate, numJPoints = 0);
pred1 = predict(fit);
pred2 = predict(fit, years = 1978, intervals = 5);
pred3 = predict(fit, years = 1976:1980, intervals = c(2, 3, 5));

Example output



JPSurv documentation built on May 30, 2017, 7:55 a.m.