Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New package -xglm- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New package -xglm- on SSC
Date   Mon, 20 Jun 2011 16:51:33 +0100

Thanks to Kit Baum, a new package -xglm- is now available for download from SSC. In Stata, use the -ssc- command to do this.

The -xglm- package is described as below on my website. It is an extended version of -glm-. Currently, the only added extension is an additional estimation result -e(depvarsum)-, containing the sum of the dependent variable. This is particularly useful in the case of logistic or log-linear regression, where the total number of events or non-events (whichever is smaller) can be useful as a diagnostic indicator. If it is divided by the total number of estimated parameters (calculated from -e(df_m)-), then the result is the number of events or non-events per parameter (whichever is smaller). If the number of events or non-events per parameter (whichever is smaller) is below 5, then we may suspect that the Central Limit Theorem will not work very well for the estimated log odds and their ratios. I frequently use the -xglm- package with the -parmby- module of the -parmest- package, which is also downloadable from SSC.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

package xglm from

      xglm: Extended version of glm

      xglm is an extended version of glm, designed mostly for use
      with the parmby option of the parmest package, downloadable
      from SSC.

      Author: Roger Newson
      Distribution-Date: 30may2011
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index