Skip to contents

Dataset with 80 patients where the biomarker has no variation (constant value), testing handling of predictors with zero variance.

Usage

psychopdaROC_constant

Format

A data frame with 80 rows and 3 variables:

patient_id

Character: Patient identifier (PT001-PT080)

outcome

Factor: "Positive" or "Negative" (50%/50% prevalence)

constant_marker

Numeric: Constant value of 50 for all patients

Source

Generated test data for ClinicoPath package

Details

All patients have identical biomarker value (50). Tests error handling for zero-variance predictors that cannot produce ROC curves.

Examples

data(psychopdaROC_constant)
psychopdaROC(data = psychopdaROC_constant, dependentVars = "constant_marker",
             classVar = "outcome")
#> Error in psychopdaROC(data = psychopdaROC_constant, dependentVars = "constant_marker",     classVar = "outcome"): argument "positiveClass" is missing, with no default