Skip to content

sbalci/ClinicoPathDescriptives

Repository files navigation

ClinicoPathDescriptives

R-CMD-check CRAN status License: GPL v2

Overview

ClinicoPathDescriptives is a comprehensive R package designed specifically for descriptive analysis in clinicopathological research. This toolkit bridges the gap between statistical analysis and medical research workflows by providing both programmatic R functions and an intuitive graphical interface through the jamovi statistical platform.

The package emphasizes reproducible research workflows, automated reporting capabilities, and natural language interpretation of statistical results, making advanced statistical analysis accessible to medical researchers regardless of their programming background. With over 50 comprehensive vignettes and extensive documentation, ClinicoPathDescriptives serves as both a powerful analytical tool and an educational resource for clinicopathological research.

Key Features

πŸ“Š Descriptive Analysis Suite

  • Table One Generation (tableone): Create publication-ready baseline characteristics tables with automatic variable type detection and appropriate statistical tests
  • Cross-tabulation Analysis (crosstable): Generate comprehensive contingency tables with chi-square, Fisher's exact, and other appropriate statistical tests, including q-value corrections for multiple comparisons
  • Summary Statistics (summarydata): Automated descriptive statistics with natural language interpretation and multiple output formats
  • Categorical Data Reporting (reportcat): Specialized reporting tools for categorical variables with clinical context

πŸ“ˆ Advanced Visualizations

  • Age Pyramid Plots (agepyramid): Population structure visualizations for demographic analysis
  • Alluvial Diagrams (alluvial): Flow visualizations for tracking categorical variable relationships and patient pathways
  • Venn Diagrams (venn): Set relationship visualizations with statistical overlap analysis using ggVennDiagram (supports 2-7 sets)
  • Variable Trees (vartree): Hierarchical data structure visualizations for complex datasets

πŸ” Data Quality & Validation

  • Benford's Law Analysis (benford): Statistical data quality assessment and fraud detection using first-digit distribution analysis
  • Data Quality Assessment (dataquality): Comprehensive data profiling with missing value analysis and distribution assessments
  • Data Checking (checkdata): Interactive data validation and quality control tools
  • Outlier Detection (outlierdetection): Multiple methods including DBSCAN, robust statistics, and visualization
  • Chi-square Post-hoc Tests (chisqposttest): Detailed post-hoc analysis for chi-square tests with pairwise comparisons

🎯 Clinical Research Focus

  • Medical Terminology Integration: Functions and outputs designed with clinical research workflows in mind
  • Journal-Ready Tables: Multiple formatting options compatible with major medical journals (NEJM, Lancet, JAMA styles)
  • Statistical Best Practices: Appropriate test selection based on data characteristics and clinical research standards
  • Natural Language Summaries: Automated interpretation of statistical results in clinically meaningful language

πŸ–₯️ Dual Interface Design

  • R Programming Interface: Full programmatic control with pipe-friendly syntax and tidy data principles
  • jamovi GUI Modules: Point-and-click interface for researchers without programming experience
  • Reproducible Workflows: All analyses generate reproducible code regardless of interface used

πŸ“š Comprehensive Documentation

  • 50+ Detailed Vignettes: Step-by-step tutorials covering all package functions with clinical examples
  • 22 Clinical Datasets: Real-world medical research scenarios for testing and learning
  • Interactive Examples: Hands-on tutorials with interpretation guidance
  • pkgdown Website: Professional documentation at serdarbalci.com/ClinicoPathDescriptives

Installation

Development Version

# Install from GitHub
devtools::install_github("sbalci/ClinicoPathDescriptives")

jamovi Module

Install the jamovi module from the jamovi library or visit ClinicoPath jamovi Module.

Quick Start

library(ClinicoPathDescriptives)

# Load example clinical dataset
data("histopathology")

# Generate Table One for baseline characteristics
tableone_result <- tableone(
  data = histopathology,
  grouping_variable = "Treatment_Group",
  explanatory_variables = c("Age", "Gender", "Tumor_Size", "Grade")
)

# Create cross-tabulation with statistical tests
crosstable_result <- crosstable(
  data = histopathology,
  dependent_variable = "Response",
  explanatory_variables = c("Treatment_Group", "Biomarker_Status"),
  statistical_test = TRUE
)

# Generate alluvial diagram for treatment pathways
alluvial_plot <- alluvial(
  data = histopathology,
  variables = c("Initial_Treatment", "Response", "Second_Line_Treatment")
)

Documentation & Support

Citation

If you use ClinicoPathDescriptives in your research, please cite the main ClinicoPath project:

Serdar Balci (2025). ClinicoPath jamovi Module. doi:10.5281/zenodo.3997188
[R package]. Retrieved from https://github.com/sbalci/ClinicoPathJamoviModule

License

GPL (>= 2) - see LICENSE file for details.

Related Packages

  • OncoPath: Oncology-specific visualization tools including swimmer plots and waterfall plots for cancer research workflows. The swimmer plot and waterfall plot modules have been moved to this dedicated oncology package.

Contributing

Contributions are welcome! Please see our contributing guidelines and feel free to submit issues, feature requests, or pull requests.