scalib: Survival calibration objects

View source: R/scalib.R

scalibR Documentation

Survival calibration objects

Description

Survival calibration objects

Usage

scalib(pred_risk, pred_horizon, event_status, event_time)

Arguments

pred_risk

(numeric vector, list, data frame, or matrix) predicted risk values for the event at or before pred_horizon

pred_horizon

(numeric value) the time of risk prediction.

event_status

(numeric vector) observed event status. The values of this vector should be 0 (event censored) and 1 (event observed).

event_time

(numeric vector) observed event times

Value

an object of class 'scalib'

Examples


sc <- scalib(pred_risk = pbc_scalib$predrisk,
             pred_horizon = 2500,
             event_time = pbc_scalib$test$time,
             event_status = pbc_scalib$test$status)

print(sc)

bcjaeger/survival.calib documentation built on June 15, 2022, 7:47 a.m.