predict.GORH: Predict survival probabilities for a new subject.

Description Usage Arguments Details Value

View source: R/predict.GORH.R

Description

Based on the predicted model, survival probabilities are calculated for a new individual with specific covariate values. The new.x specifies the covariate vector in the GORH model for the new individual. If no values are specified, zeros will be used and the baseline survival probabilities are returned.

Usage

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

Arguments

object

An object from the function GORH.

...

Other argumetns including new.x. See details.

Details

For a new subject, new.x gives the covariate vector in the GORH model. The argument tp gives the sequence of time points that you want to calculate the survival probabilities. If tp is not specified, then a sequence of equally spaced numbers from 0 to the largest observation time in the data are used and another argument len defines the number of equally spaced time points for calculating the survival curve, default is 100.

Value

SurvTime

Survival time points used for calculation of the survival probabilities.

SurvProb

Survival probabilities of the new individual.


ICGOR documentation built on May 1, 2019, 10:31 p.m.