crosstableClass: Cross Table for Clinicopathological Comparisons

crosstableClassR Documentation

Cross Table for Clinicopathological Comparisons

Description

This function generates cross tables comparing a dependent variable (rows) with a grouping variable (columns) and automatically selects hypothesis tests appropriate for clinical research. The output tables are rendered in various styles (e.g., arsenal, finalfit, gtsummary, NEJM, Lancet, hmisc) and are intended for pathologists and oncologists. In addition to visualizing associations, this function now optionally provides an exportable CSV version of the cross table.

Details

The function cleans variable names and applies original labels. It then builds a formula based on the cleaned data and performs the appropriate statistical test (e.g. chi-square or Fisher’s exact test). Detailed user guidance is provided via HTML to-do messages.

Value

The function produces an HTML table output, and if requested, an additional downloadable CSV export.

Super classes

jmvcore::Analysis -> ClinicoPath::crosstableBase -> crosstableClass

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
crosstableClass$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


sbalci/ClinicoPathJamoviModule documentation built on Feb. 25, 2025, 6:34 a.m.