Skip to contents

Implements the Magee Equations (Klein et al. 2013, PMID: 23503643) for estimating Oncotype DX Recurrence Score from standard pathology variables. Provides all four published equations (Original + 3 new) with risk category classification and concordance analysis.

Usage

mageeequation(
  data,
  nuclearGrade,
  mitosis,
  erHscore,
  prHscore,
  her2Status,
  her2Positive,
  nottinghamScore = NULL,
  tumorSize = NULL,
  ki67 = NULL,
  actualRS = NULL,
  erFormat = "hscore",
  prFormat = "hscore",
  equations = "all",
  lowCutoff = 15,
  highCutoff = 26,
  showIndividual = TRUE,
  showConcordance = TRUE,
  showDistribution = TRUE
)

Arguments

data

.

nuclearGrade

.

mitosis

.

erHscore

.

prHscore

.

her2Status

.

her2Positive

.

nottinghamScore

.

tumorSize

.

ki67

.

actualRS

.

erFormat

.

prFormat

.

equations

.

lowCutoff

.

highCutoff

.

showIndividual

.

showConcordance

.

showDistribution

.

Value

A results object containing:

results$todoa html
results$noticesa html
results$equationInfoa html
results$summaryTablea table
results$riskTablea table
results$concordanceTablea table
results$individualTablea table
results$distributionPlotan image
results$concordancePlotan image

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

results$summaryTable$asDF

as.data.frame(results$summaryTable)