Skip to contents

Dataset with 160 patients featuring two tests with complementary characteristics: one very sensitive (0.95) but less specific (0.70), one very specific (0.95) but less sensitive (0.70).

Usage

nogoldstandard_imbalanced

Format

A data frame with 160 rows and 3 variables:

patient_id

Character: Patient identifier (PT001-PT160)

Sensitive_Test

Factor: High sensitivity test ("Negative", "Positive"), Sens=0.95, Spec=0.70

Specific_Test

Factor: High specificity test ("Negative", "Positive"), Sens=0.70, Spec=0.95

age

Numeric: Patient age in years (mean 57, SD 13)

Source

Generated test data for ClinicoPath package

Details

Simulated with 28% prevalence. Demonstrates complementary test characteristics and value of combining tests with different strengths.

Examples

data(nogoldstandard_imbalanced)
nogoldstandard(data = nogoldstandard_imbalanced,
               test1 = "Sensitive_Test", test1Positive = "Positive",
               test2 = "Specific_Test", test2Positive = "Positive",
               method = "latent_class")
#> Error in nogoldstandard(data = nogoldstandard_imbalanced, test1 = "Sensitive_Test",     test1Positive = "Positive", test2 = "Specific_Test", test2Positive = "Positive",     method = "latent_class"): argument "test3Positive" is missing, with no default