Skip to contents

Basic dataset with 200 patients for comparing two diagnostic tests against a gold standard. Test 1 (Sens=0.85, Spec=0.90), Test 2 (Sens=0.80, Spec=0.85).

Usage

decisioncompare_test

Format

A data frame with 200 rows and 5 variables:

patient_id

Character: Patient identifier (PT001-PT200)

GoldStandard

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

Test1

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

Test2

Factor: Second test result ("Negative", "Positive"), Sens=0.80, Spec=0.85

age

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

sex

Factor: "Male" or "Female"

Source

Generated test data for ClinicoPath package

Details

Simulated with 30% disease prevalence. Tests have good characteristics with Test1 slightly superior to Test2. Suitable for demonstrating basic test comparison with confidence intervals and McNemar's test.

Examples

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