pred_surv: Constructor of S3 class 'pred_surv'

View source: R/pred_surv_class.R

pred_survR Documentation

Constructor of S3 class pred_surv

Description

Construct a pred_surv object containing predicted/fitted survival probabilities for multiple individuals in the same sample. Can only hold survival curves of the form of decreasing rightcontinuous step functions.

Usage

pred_surv(time, surv)

Arguments

time

collection of all unique event times where the predicted/fitted survival function may have a jump. Must be increasing.

surv

matrix of predicted/fitted survival probabilities. Each row corresponds to an individual; each column corresponds to an event time in time. Row names should be id.var that identifies each individual (see SDRsurv).

Details

If there is no event, set time=Inf and surv to be a matrix with only one column of 1.


QIU-Hongxiang-David/SDRsurv documentation built on March 29, 2024, 8:41 a.m.