pred_event_censor: Constructor of S3 class 'pred_event_censor'

View source: R/pred_surv_class.R

pred_event_censorR Documentation

Constructor of S3 class pred_event_censor

Description

Construct a pred_event_censor object containing predicted/fitted survival and censoring probabilities for multiple individuals in the same sample. Can only hold survival curves of the form of decreasing right-continuous step functions.

Usage

pred_event_censor(pred_event_obj, pred_censor_obj = NULL)

Arguments

pred_event_obj

a pred_surv object holding predicted/fitted survival probabilities for events.

pred_censor_obj

a pred_surv object holding predicted/fitted survival probabilities for censoring. Set to NULL (default) if no censoring present.

Details

The predicted/fitted probability matrices in pred_event_obj and pred_censor_obj must have same row names, i.e., same number of individuals.


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