cox_table_combined: Print table with univariate, full mutlivariable and reduced...

View source: R/cox_table_combined.R

cox_table_combinedR Documentation

Print table with univariate, full mutlivariable and reduced (backwards selection) multivariable cox regression

Description

This function combines the results of a univariable, full multivariable model and a backwards selection model.

Usage

cox_table_combined(
  data,
  time,
  time2 = NULL,
  status,
  vars,
  fixed.var = NULL,
  rgroup = NULL,
  p.thres = 0.1,
  footnote = NULL,
  output = "html",
  ...
)

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.

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

fixed.var

specifies fixed variables to be included in the cox model.

rgroup

a vector of character strings containing headings for row groups.

p.thres

pvalue threshold for backwards selection model.

footnote

character string passed on to tfoot argument of htmlTable or add_footer_lines of flextable

output

string specifying the type of output. Allowed values are "html" generating a htmlTable, "flex" generating a flextable or "df" returning a data.frame

...

additional arguments to be passed on to cox_table_combined


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