------------------ help for scatlog ------------------Scatterplot with logistic regression line -----------------------------------------

scatlog var1 var2 [if exp] [in range] [, ci xb]

Description -----------

scatlog creates a scatterplot of var1 with var2 with a logistic regression line. var1 is assumed to be coded 0/1 and the observed probabilities of var1=1 are plotted at each level of var2. The observed probabilites are computed on a covariate pattern basis (i.e., the number of times var1=1 divided by the number of observations for that covariate pattern).

Options --------

ci plots 95% confidence interval for the conditional predicted probability.

xb plots the logit of var1 and the predicted logits instead of the observed and predicted probabilities.

Example --------

. scatlog female math . scatlog female math, ci

Author ------

Michael N. Mitchell Statistical Computing and Consulting UCLA, Academic Technology Services mnmatucla.edu