surv_time_table: Calculate x-months survival and show results in a table

View source: R/surv_time_table.R

surv_time_tableR Documentation

Calculate x-months survival and show results in a table

Description

This function calculates x-months survival grouped by an optional stratification factor and displays the results in a Table.

Usage

surv_time_table(data, time, status, times, var)

Arguments

data

data.frame or data.table containing survival data.

time

The time interval from start of observation until date of event (e.g. disease progression or death) or censoring.

status

Variable specifying if event occured or data has been censored. Default behaviour inherited from the surv_fit function in the survival package, with 0 indicating censored data and 1 indicating event.

times

Time in months for which survival should be calculated.

var

Variable tested for Influence on outcome.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.