decisioncompare Test Data - Basic Two-Test Comparison
Source:R/data_decisioncompare_docs.R
decisioncompare_test.RdBasic 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).
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"
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