TernTables: Automated Statistical Analysis and Table Generation for Biomedical Research

Read full text
Authors: Joshua D. Preston, Helen Abadiotakis, Ailin Tang, Clayton J. Rust, Michael Emanuel Halkos, Mani Ali Daneshmand, Joshua L. Chan
Cited by: 1
References: 1

Abstract

Generates publication-ready summary tables for clinical research, supporting descriptive summaries and comparisons across two or three groups. The package streamlines the analytical workflow by detecting variable types and applying appropriate statistical tests (Welch t-test, Wilcoxon rank-sum, Welch ANOVA, Kruskal-Wallis, Chi-squared, or Fisher's exact test). Results are formatted as 'tibble' objects and can be exported to 'Word' or 'Excel' using the 'officer', 'flextable', and 'writexl' packages. Optional pairwise post-hoc testing for three-group comparisons (Games-Howell and Dunn's test) is available via the 'rstatix' package. Example data are derived from the landmark adjuvant colon cancer trial described in Moertel et al. (1990) .

Publication details

Journal / source
CRAN: Contributed Packages
Publisher
The R Foundation
Publication date
26 March 2026
Document type
Dataset