
oglm: Ordinal Generalized Linear Models
Richard Williams, University of Notre Dame
Note: Those who are interested in oglm may also be interested in its older sibling, gologit2. Much of the material on the gologit2 page will also apply to oglm. oglm requires Stata 9 while gologit2 requires Stata 8.2.
Readings. Allison (1999) showed that comparisons of logit and probit coefficients across groups was potentially problematic. Using Heterogeneous Choice Models To Compare Logit and Probit Coefficients Across Groups (revised June 2008) critiques Allison's proposed solution and shows how it can be improved upon using heterogeneous choice models that can be estimated by oglm. This working paper (last updated on July 22, 2008), Estimating Heterogeneous Choice Models with Stata, provides several examples of heterogeneous choice models with the accompanying oglm Stata code. This paper from The Stata Journal discusses the closely related gologit2 program, which estimates many of the same models as oglm. Also, this July 2006 presentation (powerpoint or pdf; related handout) discusses "Interpreting and using heterogeneous choice & generalized ordered logit models." It raises several issues that users of gologit may not be aware of and argues that heterogeneous choice models (which can be estimated with oglm) can sometimes be an attractive alternative to gologit models.
I also highly recommend this working paper by Keele and Park. It reviews the literature on some of the models estimated by oglm , and also critiques these methods. I asked the authors how much I should be worried about these problems, and they told me that "I wouldn't worry that much in that the ordinal probit is quite a bit better overall. In political science people use fairly complicated specifications for the variance model. I think if you know pretty clearly that the heterogeneity is from some set of groups then the specification is a lot easier to get right." This chapter on SPSS Plum (which oglm is patterned after) is also quite good, but keep in mind that oglm and PLUM do some things differently. The oglm help file includes several examples and documents its options.
Overview. oglm estimates Ordinal Generalized Linear Models. When these models include equations for heteroskedasticity they are also known as heterogeneous choice/ location-scale / heteroskedastic ordinal regression models. oglm supports multiple link functions, including logit (the default), probit, complementary log-log, log-log and cauchit.
When an ordinal regression model incorrectly assumes that error variances are the same for all cases, the standard errors are wrong and (unlike OLS regression) the parameter estimates are biased. Heterogeneous choice/ location-scale models explicitly specify the determinants of heteroskedasticity in an attempt to correct for it. Further, these models can be used when the variance/variability of underlying attitudes is itself of substantive interest. Alvarez and Brehm (1995), for example, argued that individuals whose core values are in conflict will have a harder time making a decision about abortion and will hence have greater variability/error variances in their responses.
Several special cases of ordinal generalized linear models can also be estimated by oglm, including the parallel lines models of ologit and oprobit (where error variances are assumed to be homoskedastic), the heteroskedastic probit model of hetprob (where the dependent variable must be a dichotomy and the only link allowed is probit), the binomial generalized linear models of logit, probit and cloglog (which also assume homoskedasticity), as well as similar models that are not otherwise estimated by Stata. This makes oglm particularly useful for testing whether constraints on a model (e.g. homoskedastic errors) are justified, or for determining whether one link function is more appropriate for the data than are others.
Other features of oglm include support for linear constraints, making it possible, for example, to impose and test the constraint that the effects of x1 and x2 are equal. oglm works with several prefix commands, including by, nestreg, xi, svy and sw. Its predict command includes the ability to compute estimated probabilities. The actual values taken on by the dependent variable are irrelevant except that larger values are assumed to correspond to "higher" outcomes. Up to 20 outcomes are allowed. oglm was inspired by the SPSS PLUM routine but differs somewhat in its terminology, labeling of links, and the variables that are allowed when modeling heteroskedasticity.To install oglm : From within Stata, type
findit oglm
Suggested citations if using oglm in published work
oglm is not an official Stata command. It is a free contribution to the research community, like a paper. Please cite it as such.Williams, Richard. 2006. "OGLM: Stata module to estimate Ordinal Generalized Linear Models." http://econpapers.repec.org/software/bocbocode/s453402.htm
Williams, Richard. 2006. "Generalized Ordered Logit/ Partial Proportional Odds Models for Ordinal Dependent Variables." The Stata Journal 6(1):58-82. A pre-publication version is available at http://www.nd.edu/~rwilliam/gologit2/gologit2.pdf.
gologit2 is a related program and may be more appropriate than oglm for some purposes. The two programs can also be used together if you wish to contrast heterogeneous choice / location-scale models with gologit models.
I would appreciate an email notification if you use oglm in published work, as well as a citation of one or more of the sources listed above. Also feel free to email me if you have comments about the program or its documentation.