R Under development (unstable) (2025-09-11 r88813 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #' Predictive Modeling Module Test Suite > #' > #' This script validates the predictive modeling components > #' including complication risk prediction, treatment response analysis, > #' and risk stratification capabilities. > #' > #' Key Tests: > #' - Complication risk prediction (PJI, DVT, revision) > #' - Treatment response prediction > #' - Risk stratification and clustering > #' - Feature importance analysis > #' - Model calibration and uncertainty quantification > > # Load required libraries > library(data.table) > library(dplyr) Attaching package: 'dplyr' The following objects are masked from 'package:data.table': between, first, last The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union > if (requireNamespace("caret", quietly = TRUE)) { + library(caret) + } else { + message("caret package not available, skipping predictive modeling tests") + quit(save = "no", status = 0) + } caret package not available, skipping predictive modeling tests > proc.time() user system elapsed 0.50 0.14 0.62