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

st: New version of -xgroup- on SSC

From   "Newson, Roger B" <>
To   <>
Subject   st: New version of -xgroup- on SSC
Date   Wed, 4 Feb 2009 13:26:13 -0000

Thanks to Kit Baum, a new version of -xgroup- is now available for
download from SSC. In Stata, use the -ssc- command to do this, or use
-adoupdate- if you already have the old version.

The -xgroup- command is described as below on my website. In the new
version, the -generate()- option is now optional, although the user must
specify either -generate()- or -saving()-. Therefore, it is now possible
to produce an output dataset (or resultsset) with only the variables in
the varlist, and not generate a grouping variable.

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 xgroup from

      xgroup: Group the data creating a group variable and/or output

      xgroup is an extended version of the egen function group(varlist).
      It inputs a varlist of existing variables, and groups the data by
      the varlist.  It generates as output a new variable, indicating
      group to which each observation belongs, and/or also an output
      dataset (or resultsset), with 1 observation per group, and data on
      the values of the varlist variables, and of the generated variable
      (if specified), corresponding to that group.  The output dataset
      can be merged into other datasets, using the official Stata
      merge or the SSC package addinby.  xgroup is typically used
      together with the SSC packages parmest and factext, especially
      a multiple-intercept model is fitted to the data, with 1 intercept
      for each combination of values for the varlist.
      Author: Roger Newson
      Distribution-Date: 03february2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to
(click here to return to the previous screen)

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index