Skip to content

sbalci/meddecide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

meddecide

Medical Decision Analysis and Reliability Assessment Tools for Clinical Research

Abstract

meddecide is a comprehensive R package and jamovi module that bridges the gap between complex statistical methodology and practical clinical research. It provides an intuitive toolkit for medical professionals and researchers to perform diagnostic test evaluations, reliability assessments, and evidence-based decision analyses without requiring extensive programming knowledge. By offering both a traditional R interface and a user-friendly jamovi GUI, the package democratizes access to advanced statistical methods essential for modern medical research and clinical decision-making.

Overview

The meddecide package serves as the computational engine for the ClinicoPath jamovi Module, offering dual functionality:

  • As an R Package: Direct access to all functions through R scripts and console
  • As a jamovi Module: Point-and-click interface for statistical analyses without coding

See full documentation at https://sbalci.github.io/ClinicoPathJamoviModule/

CRAN Status R-CMD-check License: GPL (>= 2) jamovi Module jamovi Version R Version

GitHub Release GitHub Issues GitHub Stars

Medical Decision Analysis Reliability Assessment ROC Analysis Kappa Statistics

DOI Documentation Clinical Research

Key Features

๐Ÿฅ Medical Decision Analysis

  • Diagnostic Test Evaluation: Calculate sensitivity, specificity, predictive values, and likelihood ratios
  • Test Comparison: Compare multiple diagnostic tests against a gold standard
  • Decision Calculator: Interactive tool for exploring how test characteristics affect clinical decisions
  • Bayesian Updates: Fagan nomograms for visualizing post-test probability calculations

๐Ÿ“Š ROC Analysis

  • ROC Curve Generation: Create and visualize receiver operating characteristic curves
  • AUC Calculation: Compute area under the curve with confidence intervals
  • Optimal Cutpoint Detection: Determine best thresholds using various optimization methods
  • Multiple Comparison: Compare ROC curves from different diagnostic tests

๐Ÿค Reliability Assessment

  • Cohen's Kappa: Calculate inter-rater agreement for two raters
  • Fleiss' Kappa: Assess agreement among multiple raters
  • Weighted Kappa: Account for ordinal data with custom weighting schemes
  • Agreement Visualization: Generate plots to visualize rater concordance patterns

๐Ÿ“ Sample Size Calculations

  • Power-Based: Determine sample size for desired statistical power
  • Precision-Based: Calculate sample size for confidence interval width
  • Fixed N Analysis: Evaluate achievable power with predetermined sample size
  • Multiple Scenarios: Compare sample size requirements across different study designs

๐Ÿ”ฌ Advanced Analysis

  • No Gold Standard: Analyze diagnostic tests when reference standard is imperfect
  • Latent Class Analysis: Estimate test performance without gold standard
  • Bootstrap Methods: Generate robust confidence intervals
  • Missing Data Handling: Appropriate methods for incomplete datasets

๐Ÿ“ˆ Visualization Tools

  • Fagan Nomograms: Interactive Bayesian probability calculators
  • Forest Plots: Compare diagnostic metrics across studies
  • Agreement Plots: Visualize inter-rater reliability patterns
  • ROC Space: Multi-test comparison in ROC coordinate system

Installation

As an R Package

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

# Load the package
library(meddecide)

As a jamovi Module

  1. Open jamovi (โ‰ฅ 1.8.1)
  2. Click the modules menu (โ‹ฎ) in the top right
  3. Select "jamovi library"
  4. Search for "ClinicoPath"
  5. Click Install

Example datasets

Small CSV files are provided in inst/extdata to illustrate the main functions. Use read.csv() together with system.file() to access the files after the package is installed.

# Decision analysis example
df_dec <- read.csv(system.file("extdata", "decision_example.csv", package = "meddecide"))
decision(data = df_dec, gold = df_dec$gold, newtest = df_dec$newtest,
         goldPositive = 1, testPositive = 1)

# ROC analysis example
df_roc <- read.csv(system.file("extdata", "roc_example.csv", package = "meddecide"))
psychopdaroc(data = df_roc, class = df_roc$class, value = df_roc$value)

# Agreement analysis example
df_agr <- read.csv(system.file("extdata", "agreement_example.csv", package = "meddecide"))
agreement(data = df_agr)

About

Functions for Medical Decision Making for ClinicoPath jamovi Module

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •