
Prior-shift correction between a training and a target prevalence
Source:R/transport.R
adjust_for_prevalence.RdAdds the log odds ratio of the two base rates to the log odds, so scores of a model trained on a balanced sample (prevalence 0.5) map to the natural incidence.