table1_pval: Print table1 with pvalues

View source: R/table1_pval.R

table1_pvalR Documentation

Print table1 with pvalues

Description

This function calculates statistics and prints results in a table generated with table1(). For categorical data chi² test is used, for numerical data Welch ANOVA is conducted

Usage

table1_pval(
  data,
  strat,
  vars,
  footnote = NULL,
  html = TRUE,
  white.adjust = TRUE,
  ...
)

Arguments

data

data.frame or data.table containing patient characteristics and demographics

strat

strata to group by

vars

character vector specifying columns that shall be included in the table

footnote

A character string to be added as a footnote to the table. Can also be a vector which results in multiple lines of footnotes. The default NULL causes the footnote to be omitted.

html

logical indicating whether output should include html characters or not

white.adjust

Default is FALSE. If TRUE, heteroscedasticity correction is applied to the coefficient of covariance matrix. Used only for independent measures ANOVA.

...

additional arguments passed on to table1() function.


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