Logistic regression in Stata
The two commands of Stata are the logit
command and the logistic
command. The logit
command demonstrates the coefficient whereas logistic
demonstrates the odds ratios. One can also find out the odds ratios from the logit
command through the or
option. In the second section, we will discuss how coefficients and odds are interrelated and how they can be converted. Now, let's take a look at the logarithm pattern. The logs used in this section are natural logs. An example is if log (d) = e, then log (8) = 0.90308 exp (0.90308) = 8; here, exp
represents exponentiation, and it is essential because it shows the link between the coefficient and odds ratios. To better understand the difference between the logit
coefficient and the logit
command, we have built few sets of data; the tabulate
command is used for their distribution. In OLS regression, predicted values are used and graph a is plotted; we will use the same thing here. An example is given later on in the chapter...