scalib | R Documentation |
Survival calibration objects
scalib(pred_risk, pred_horizon, event_status, event_time)
pred_risk |
(numeric vector, list, data frame, or matrix)
predicted risk values for the event at or before |
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 |
an object of class 'scalib'
sc <- scalib(pred_risk = pbc_scalib$predrisk, pred_horizon = 2500, event_time = pbc_scalib$test$time, event_status = pbc_scalib$test$status) print(sc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.