Dataset with 120 patients comparing perfect test (Sens=1.0, Spec=1.0) against imperfect test (Sens=0.85, Spec=0.88).
Format
A data frame with 120 rows and 4 variables:
- patient_id
Character: Patient identifier (PT001-PT120)
- GoldStandard
Factor: True status ("Negative", "Positive"), 30% positive
- PerfectTest
Factor: Perfect test ("Negative", "Positive"), Sens=1.0, Spec=1.0
- ImperfectTest
Factor: Imperfect test ("Negative", "Positive"), Sens=0.85, Spec=0.88
- age
Numeric: Patient age in years (mean 60, SD 11)
Details
Edge case demonstrating perfect test performance (100% agreement with gold standard) compared to realistic imperfect test.
Examples
data(decisioncompare_perfect)
decisioncompare(data = decisioncompare_perfect, gold = "GoldStandard",
goldPositive = "Positive", test1 = "PerfectTest",
test1Positive = "Positive", test2 = "ImperfectTest",
test2Positive = "Positive", statComp = TRUE)
#> Error in decisioncompare(data = decisioncompare_perfect, gold = "GoldStandard", goldPositive = "Positive", test1 = "PerfectTest", test1Positive = "Positive", test2 = "ImperfectTest", test2Positive = "Positive", statComp = TRUE): argument "test3Positive" is missing, with no default