Replicating OLS, Logit, Probit, and Poisson
The handout illustrates how one can use the glm command in Stata to obtain results exactly
like those we get using regress, logit, probit, and poisson, respectively. These are
illustrated on pp. 2-5 of the handout. I won’t go into a lot of detail on these, since there
isn’t much to say, except to note that:
1. Technically, glm yields exactly the same results as regress, logit, etc. only in those
instances where the link function is the canonical one. In other instances – using a
probit or c-log-log link with a binary response, for example – the standard errors are
only asymptotically equivalent. As a practical matter, this is usually not a big issue;
it certainly isn’t in the example data, where the N is large.
2. There are also some special considerations to think about when using glm to estimate
negative binomial models (not shown). Read more on this in the Stata manuals, or in
one or more of the references below, if it is something you care about.
An Extension: Models of Supreme Court Coalition Size
GLMs can also do things that none of the models heretofore discussed can do. To take
an example, consider the question of the size of a majority opinion coalition on the U.S.
Supreme Court. We know that:
• To constitute a majority, the opinion coalition must be made up of a number of justices
equal to of greater than half of the justices who heard the case. However,
• Not every case is heard and voted on by every justice – sometimes there are vacancies,
sometimes justices recuse themselves for various reasons, and sometimes both occur.
As a practical matter, then, majority coalition sizes range from three (in 3-2 decisions, say,
where four justices are absent or recuse) to nine (in 9-0 unanimous cases). But the size of the
majority coalition is always at least partially determined by the number of justices voting in
the case.
Suppose we define N
i
as the number of justices voting in case i, and denote the size of the
majority coalition in that case as M
i
. Then it makes some sense
2
to think of M
i
as a binomial
function:
M
i
∼
N
i
p
i
p
M
i
i
(1 − p
i
)
N
i
−M
i
We can estimate a model of a variable like M
i
using a GLM framework. In particular, we can
estimate a model of M
i
where N
i
is allowed to vary across i, and where p
i
– the probability
2
To be brutally honest, this is not completely right. What we’d really want to do is to have a binomial
with a lower limit at the integer value of 0.5N
i
, since we’re only looking at majority coalitions. But, this
will do for pedagogical purposes.
11