Skip to contents

Edge case dataset with 100 patients where Test1 and Test2 are identical. Tests handling of perfect agreement between tests.

Usage

decisioncompare_identical

Format

A data frame with 100 rows and 4 variables:

patient_id

Character: Patient identifier (PT001-PT100)

GoldStandard

Factor: True status ("Negative", "Positive"), 30% positive

Test1

Factor: First test ("Negative", "Positive"), Sens=0.85, Spec=0.88

Test2

Factor: Identical to Test1

age

Numeric: Patient age in years (mean 58, SD 10)

Source

Generated test data for ClinicoPath package

Details

Tests are 100% identical. McNemar's test should show no significant difference (p=1.0).

Examples

data(decisioncompare_identical)
decisioncompare(data = decisioncompare_identical, gold = "GoldStandard",
                goldPositive = "Positive", test1 = "Test1",
                test1Positive = "Positive", test2 = "Test2",
                test2Positive = "Positive", statComp = TRUE)
#> Error in decisioncompare(data = decisioncompare_identical, gold = "GoldStandard",     goldPositive = "Positive", test1 = "Test1", test1Positive = "Positive",     test2 = "Test2", test2Positive = "Positive", statComp = TRUE): argument "test3Positive" is missing, with no default