eval_surv: Evaluate Survival Distributions

View source: R/survival_eval.R

eval_survR Documentation

Evaluate Survival Distributions

Description

Generate either survival probabilities or conditional probabilities of event for each model cycle.

Usage

eval_surv(x, time, ...)

compute_surv_(x, time, cycle_length = 1, type = c("prob", "survival"), ...)

## S3 method for class 'surv_fit'
eval_surv(x, time, ...)

## Default S3 method:
eval_surv(x, ...)

## S3 method for class 'survfit'
eval_surv(x, time, ...)

## S3 method for class 'flexsurvreg'
eval_surv(x, time, ...)

## S3 method for class 'surv_model'
eval_surv(x, time, ...)

## S3 method for class 'surv_projection'
eval_surv(x, time, ...)

## S3 method for class 'surv_pooled'
eval_surv(x, time, ...)

## S3 method for class 'surv_ph'
eval_surv(x, time, ...)

## S3 method for class 'surv_shift'
eval_surv(x, time, ...)

## S3 method for class 'surv_aft'
eval_surv(x, time, ...)

## S3 method for class 'surv_po'
eval_surv(x, time, ...)

## S3 method for class 'surv_add_haz'
eval_surv(x, time, ...)

## S3 method for class 'surv_dist'
eval_surv(x, time, ...)

## S3 method for class 'surv_table'
eval_surv(x, time, ...)

Arguments

x

A survival object

time

The model_time or state_time for which to predict.

...

arguments passed to methods.

cycle_length

The value of a Markov cycle in absolute time units.

type

Either prob, for transition probabilities, or surv, for survival.

Value

Returns either the survival probabilities or conditional probabilities of event for each cycle.


heemod documentation built on June 16, 2025, 5:08 p.m.