testAUCpair: Test AUC pair results.

Description Usage Arguments Value Examples

View source: R/AUCTest.R

Description

Estimate significance of difference in two AUCs by resampling.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
testAUCpair(
  d,
  model1Name,
  model2Name,
  yName,
  yTarget = TRUE,
  ...,
  na.rm = FALSE,
  returnScores = FALSE,
  nrep = 100,
  parallelCluster = NULL
)

Arguments

d

data.frame

model1Name

character model 1 column name

model2Name

character model 2 column name

yName

character outcome column name

yTarget

target to match to y

...

extra arguments (not used)

na.rm

logical, if TRUE remove NA values

returnScores

logical if TRUE return detailed resampledScores

nrep

number of re-sample repetition to estimate p value.

parallelCluster

(optional) a cluster object created by package parallel or package snow

Value

AUC pair test

Examples

1
2
3
4
5
6
set.seed(25325)
d <- data.frame(x1=c(1,2,3,4,5,6,7,7),
                x2=1,
                y=c(FALSE,TRUE,FALSE,FALSE,
                    TRUE,TRUE,FALSE,TRUE))
testAUCpair(d,'x1','x2','y',TRUE)

sigr documentation built on June 12, 2021, 9:07 a.m.