meddecide

Advanced ROC Analysis

Receiver Operating Characteristic (ROC) curve analysis with optimal cutpoint determination.

Usage

psychopdaROC(
  manualRun = FALSE,
  run = FALSE,
  clinicalMode = "basic",
  data,
  dependentVars,
  classVar,
  positiveClass,
  subGroup = NULL,
  clinicalPreset = "none",
  method = "maximize_metric",
  metric = "youden",
  direction = ">=",
  specifyCutScore = "",
  tol_metric = 0.05,
  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 = TRUE,
  combinePlots = TRUE,
  cleanPlot = FALSE,
  showOptimalPoint = TRUE,
  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,
  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,
  treatmentThreshold = "0.05,0.5,0.05",
  harmBenefitRatio = 0.25,
  interventionCost = FALSE,
  fixedSensSpecAnalysis = FALSE,
  fixedAnalysisType = "sensitivity",
  fixedSensitivityValue = 0.9,
  fixedSpecificityValue = 0.9,
  showFixedROC = TRUE,
  fixedInterpolation = "linear",
  showFixedExplanation = TRUE,
  metaAnalysis = FALSE,
  metaAnalysisMethod = "both",
  heterogeneityTest = TRUE,
  forestPlot = FALSE,
  overrideMetaAnalysisWarning = FALSE
)

Arguments

Value

A results object containing:

           
results$instructions         a html
results$procedureNotes         a html
results$runSummary         a html
results$simpleResultsTable         a table
results$clinicalInterpretationTable         a table
results$resultsTable         an array of tables
results$sensSpecTable         an array of htmls
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$simpleResultsTable$asDF

as.data.frame(results$simpleResultsTable)