roc.curves.boot {Comp2ROC} | R Documentation |
Compare curves
Description
This is the function which control the whole package.This uses all functions except the reading ones and rocboot.summary
and save.file.summary
.
Usage
roc.curves.boot(data, nb = 1000, alfa = 0.05, name, mod1, mod2, paired)
Arguments
data |
Data obtained throught |
nb |
Number of permutations |
alfa |
Confidance level for parametric methods |
name |
Name too show in graphs |
mod1 |
Name of Modality 1 |
mod2 |
Name of Modality 2 |
paired |
Boolean parameter that represents if the two modalities are related or not |
Value
This function returns a list with:
Area1 |
Area of Curve 1 |
SE1 |
Standard error of Curve 1 |
Area2 |
Area of Curve 2 |
SE2 |
Standard error of Curve 2 |
CorrCoef |
Correlation Coeficient |
diff |
Difference Between Areas (TS) |
zstats |
Z Statistic |
pvalue1 |
p-value of Z Statistics |
TrapArea1 |
Area of curve 1 using the Trapezoidal rule |
TrapArea2 |
Area of curve 2 using the Trapezoidal rule |
bootpvalue |
p-value of bootstrapping |
nCross |
Number of Crossings |
ICLB1 |
Confidance Interval: Lower Bound for Curve 1 |
ICUB1 |
Confidance Interval: Upper Bound for Curve 1 |
ICLB2 |
Confidance Interval: Lower Bound for Curve 2 |
ICUB2 |
Confidance Interval: Upper Bound for Curve 2 |
ICLBDiff |
Confidance Interval: Lower Bound for Difference between areas |
ICUBDiff |
Confidance Interval: Upper Bound for Difference between areas |
Examples
data(zhang)
nameE = "new_Zhang"
modality1DataColumn = "modality1"
modality2DataColumn = "modality2"
data = read.manually.introduced(zhang, moda1, TRUE, moda2, TRUE, "status", TRUE)
results = roc.curves.boot(zhang, 1000, 0.05, name=nameE,
mod1=modality1DataColumn, mod2=modality2DataColumn)