Dataset for subgroup ROC analysis with 200 patients stratified by age group and sex, allowing evaluation of test performance across demographic subgroups.
Format
A data frame with 200 rows and 5 variables:
- patient_id
Character: Patient identifier (PT001-PT200)
- disease
Factor: "Disease" or "Healthy" (30%/70% prevalence)
- test_score
Numeric: Diagnostic test score (mean: 70 for disease, 45 for healthy)
- age_group
Factor: "Young", "Middle", or "Elderly"
- sex
Factor: "Male" or "Female"
Details
Enables subgroup-specific ROC analysis to assess whether test performance varies across age groups or between sexes. Useful for evaluating test generalizability across populations.
Examples
data(psychopdaROC_subgroup)
psychopdaROC(data = psychopdaROC_subgroup,
dependentVars = "test_score", classVar = "disease",
positiveClass = "Disease", subGroup = "age_group")
#> Error in psychopdaROC(data = psychopdaROC_subgroup, dependentVars = "test_score", classVar = "disease", positiveClass = "Disease", subGroup = "age_group"): argument "refVar" is missing, with no default