confIntPairedAUCDiff: Confidence interval for the difference in AUC based on two...

View source: R/confIntAUC.R

confIntPairedAUCDiffR Documentation

Confidence interval for the difference in AUC based on two paired samples

Description

Computes confidence interval for the difference in the area under the curve based on two paired samples.

Usage

confIntPairedAUCDiff(cases, controls, conf.level = 0.95)

Arguments

cases

Matrix with values of the continuous variable for the cases. First column gives values of test A, second gives values of test B.

controls

Matrix with values of the continuous variable for the controls. First column gives values of test A, second gives values of test B.

conf.level

Confidence level for confidence interval. Default is 0.95.

Value

A data.frame with the estimates and confidence limits for the AUC of the two tests and their difference.

Author(s)

Leonhard Held

References

Pepe, M.S. (2003) The statistical evaluation of medical tests for classification and prediction. Oxford University Press.

See Also

confIntAUC, confIntIndependentAUCDiff, standardErrorAUCDiff

Examples


data(wiedat2b)
ind <- wiedat2b[,3]
cases <- wiedat2b[ind == 1, 1:2]
controls <- wiedat2b[ind == 0, 1:2]
confIntPairedAUCDiff(cases = cases, controls = controls)


felix-hof/biostatUZH documentation built on Sept. 27, 2024, 1:48 p.m.