Fits a logistic regression using ONLY cohort/dataset dummy variables as predictors and reports its AUC against the case/control label. This is the empirical lower bound on how much of an apparent classifier AUC can be explained by cohort identity alone, before any biomarker is used.
If the bias floor is high (e.g., > 0.70), any pooled classifier AUC on the same data inherits that share of discrimination from cohort provenance rather than biology. A responsible biomarker claim must show AUC materially above the bias floor, on data where the floor itself has been mitigated.
Value
A list with class "os_bias_floor":
- apparent_auc
Logistic regression AUC on the training data (upper bound — optimistic by design)
- cv_auc
Cross-validated AUC, if requested
- per_cohort
Data frame: cohort, n, case rate, mean predicted probability
- interpretation
Character string summarizing the floor