Statalist


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

st: New version of -xgroup- on SSC


From   "Newson, Roger B" <r.newson@imperial.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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


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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: r.newson@imperial.ac.uk 
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

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

------------------------------------------------------------------------
-------
package xgroup from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------
-------

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

DESCRIPTION/AUTHOR(S)
      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
the
      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
command
      merge or the SSC package addinby.  xgroup is typically used
      together with the SSC packages parmest and factext, especially
when
      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
install)
      xgroup.ado
      xgroup.sthlp
------------------------------------------------------------------------
-------
(click here to return to the previous screen)

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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