strat_cox_table: Print results from stratified univariate cox regression

View source: R/strat_cox_table.R

strat_cox_tableR Documentation

Print results from stratified univariate cox regression

Description

This function combines the results from multiple calls of cox_output and prints the output as an htmlTable generated with the htmlTable package stratified by a factor.

Usage

strat_cox_table(
  data,
  time,
  status,
  vars,
  footnote = NULL,
  strata,
  printHTML = TRUE,
  univariate = TRUE,
  ...
)

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.

vars

one or more variables defined as character strings to be included in the table

footnote

character string passed on to tfoot argument of htmlTable

strata

factor to stratidfy by

printHTML

Logical value. If TRUE output is printed as htmlTable. Default is TRUE.

univariate

Logical value. If TRUE output of univariate cox regression is printed. Else output of multivariate cox regression is printed. Not defined yet. TBD.

...

additional arguments to be passed on to cox_output


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