cox_table_time_dependent_cov: Print results from univariate or multivariate cox regression

View source: R/cox_table_time_dependent_cov.R

cox_table_time_dependent_covR Documentation

Print results from univariate or multivariate 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 or the output of multivariate cox regression.

Usage

cox_table_time_dependent_cov(
  data,
  time1,
  time2,
  status,
  vars,
  rgroup = NULL,
  footnote = NULL,
  printHTML = TRUE,
  univariate = TRUE,
  weights = NULL,
  ...
)

Arguments

data

data.frame or data.table containing survival data.

time1

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

time2

ending time of the interval for interval censored or counting process data only. Intervals are assumed to be open on the left and closed on the right, (start, end]. For counting process data, event indicates whether an event o

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

rgroup

a vector of character strings containing headings for row groups.

footnote

character string passed on to tfoot argument of htmlTable

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. Default is TRUE.

weights

character variable specifying the name of the weights column. Weights have to be added to the original dataframe in order to be applied correctly.

...

additional arguments to be passed on to cox_output


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