Logistic regression
Logistic regression is unique in that it may be estimated on unbalanced data, rather than randomly sampled data, and still yield correct coefficient estimates of the effects of each independent variable on the outcome. That is to say, if we form a logistic model from such data, if the model is correct in the general population, the formula_118 parameters are all correct except for formula_106. We can correct formula_106 if we know the true prevalence as follows: