meddecide

Advanced ROC Analysis

Exploratory Receiver Operating Characteristic (ROC) curve analysis with optimal cutpoint determination. Analyze independent rows or a prespecified mean or median per patient. Patient summaries require an ID and a consistent outcome within each patient; all calculations and resampling then use one summary per patient. Nominal coverage is not guaranteed in small or imbalanced samples. Cutpoints selected on these data report apparent performance and require validation in the intended setting.

Usage

psychopdaROC(
  manualRun = FALSE,
  run = FALSE,
  showExplanations = FALSE,
  clinicalMode = "basic",
  data,
  patientID = NULL,
  analysisUnit = "rows",
  aucInference = "logit",
  dependentVars,
  classVar,
  positiveClass,
  negativeClass,
  subGroup = NULL,
  method = "maximize_metric",
  metric = "youden",
  direction = ">=",
  specifyCutScore = "",
  tol_metric = 1e-06,
  break_ties = "mean",
  allObserved = FALSE,
  boot_runs = 0,
  seed = 123,
  usePriorPrev = FALSE,
  priorPrev = 0.5,
  costratioFP = 1,
  sensSpecTable = FALSE,
  showThresholdTable = FALSE,
  maxThresholds = 20,
  delongTest = FALSE,
  plotROC = FALSE,
  combinePlots = FALSE,
  cleanPlot = FALSE,
  showOptimalPoint = FALSE,
  displaySE = FALSE,
  smoothing = FALSE,
  showConfidenceBands = FALSE,
  legendPosition = "right",
  directLabel = FALSE,
  interactiveROC = FALSE,
  showCriterionPlot = FALSE,
  showPrevalencePlot = FALSE,
  showDotPlot = FALSE,
  precisionRecallCurve = FALSE,
  partialAUC = FALSE,
  partialAUCfrom = 0.8,
  partialAUCto = 1,
  rocSmoothingMethod = "none",
  bootstrapCI = FALSE,
  bootstrapReps = 2000,
  quantileCIs = FALSE,
  quantiles = "0.1,0.25,0.5,0.75,0.9",
  compareClassifiers = FALSE,
  calculateIDI = FALSE,
  calculateNRI = FALSE,
  refVar = NULL,
  nriThresholds = "",
  idiNriBootRuns = 1000,
  effectSizeAnalysis = FALSE,
  powerAnalysis = FALSE,
  powerAnalysisType = "post_hoc",
  expectedAUCDifference = 0.1,
  targetPower = 0.8,
  significanceLevel = 0.05,
  correlationROCs = 0.5,
  bayesianAnalysis = FALSE,
  priorAUC = 0.7,
  priorPrecision = 10,
  clinicalUtilityAnalysis = FALSE,
  treatmentThresholdMin = 0.05,
  treatmentThresholdMax = 0.5,
  treatmentThresholdStep = 0.05,
  harmBenefitRatio = 0.25,
  interventionCost = FALSE,
  fixedSensSpecAnalysis = FALSE,
  fixedAnalysisType = "sensitivity",
  fixedSensitivityValue = 0.9,
  fixedSpecificityValue = 0.9,
  showFixedROC = FALSE,
  fixedInterpolation = "linear",
  showFixedExplanation = FALSE,
  metaAnalysis = FALSE,
  metaAnalysisMethod = "both",
  heterogeneityTest = FALSE,
  forestPlot = FALSE,
  overrideMetaAnalysisWarning = FALSE
)

Arguments

Value

A results object containing:

           
results$instructions         a html
results$procedureNotes         a html
results$runSummary         a html
results$outcomeCoding         Class levels with their counts and the role each plays in the analysis
results$clinicalInterpretationTable         a table
results$resultsTable         an array of tables
results$sensSpecTable         an array of tables
results$thresholdTable         a table
results$fixedSensSpecTable         a table
results$fixedSensSpecExplanation         a html
results$aucSummaryTable         a table
results$delongComparisonTable         a table
results$delongTest         a preformatted
results$plotROC         an array of images
results$interactivePlot         an image
results$fixedSensSpecROC         an array of images
results$criterionPlot         an array of images
results$prevalencePlot         an array of images
results$dotPlot         an array of images
results$dotPlotMessage         a html
results$precisionRecallPlot         an array of images
results$idiTable         a table
results$nriTable         a table
results$effectSizeTable         a table
results$powerAnalysisTable         a table
results$bayesianROCTable         a table
results$clinicalUtilityTable         a table
results$metaAnalysisWarning         a html
results$metaAnalysisTable         a table
results$decisionCurveTable         a table
results$partialAUCTable         a table
results$bootstrapCITable         a table
results$rocComparisonTable         a table
results$effectSizePlot         an array of images
results$powerCurvePlot         an array of images
results$bayesianTracePlot         an array of images
results$decisionCurvePlot         an array of images
results$metaAnalysisForestPlot         an array of images

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$outcomeCoding$asDF

as.data.frame(results$outcomeCoding)