Medical Decision Analysis and Reliability Assessment Tools for Clinical Research
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.
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/
- 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 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
- 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
- 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
- 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
- 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
# Install from GitHub
devtools::install_github("sbalci/meddecide")
# Load the package
library(meddecide)
- Open jamovi (โฅ 1.8.1)
- Click the modules menu (โฎ) in the top right
- Select "jamovi library"
- Search for "ClinicoPath"
- Click Install
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)