Logistic regression is used to model dichotomous outcome variables based on one or more predictor variables. It models the probability of an outcome as a function of the predictors using a logistic link function. The model estimates regression coefficients that represent the log odds ratios of the predictors. Odds ratios above 1 indicate increased odds of the outcome with higher predictor values, while odds ratios below 1 indicate decreased odds. Logistic regression allows testing of individual predictor coefficients and the overall model fit. Loglinear models generalize logistic regression to situations with categorical predictors where there is no clear outcome variable.