outcome_table_survival: Generate outcome table

View source: R/outcome_table_survival.R

outcome_table_survivalR Documentation

Generate outcome table

Description

Wrapper around add_median_survival to transform the data to htmltable format in order to be used in display with htmlTable::htmlTable. If time and status of

Usage

outcome_table_survival(
  data,
  time,
  status,
  surv_names,
  var,
  bestres = NULL,
  weights = NULL,
  html = TRUE,
  ORR = NULL,
  DCR = NULL,
  statistics = TRUE,
  footnote = NULL,
  font = "calibri",
  ...
)

Arguments

data

data.frame or data.table

time

Time for survival

status

censor variable

surv_names

names of the survival to be displayed in the table (e.g "Median PFS (95% CI)")

var

Variable tested for Influence on outcome

bestres

column containing data for best response

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.

html

logical indicating whether output should be in html format. Defautl is TRUE.

ORR

column containing data for over all response rate

DCR

column containing data for disease control rate

statistics

Logical value. If TRUE pvalue is printed. Default is TRUE. Default test statistics are wilcoxon (or anova if n > 2)

footnote

add footnote

font

font style for the table

...

add additional css styling arguments to addHtmlTableStyle from the htmlTable package for numerical data and fisher exact test for categorical data.


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