Statalist


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

st: New version of -expgen- on SSC


From   "Newson, Roger B" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: New version of -expgen- on SSC
Date   Wed, 8 Jul 2009 13:06:21 +0100

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

The -expgen- command is defined as below on my website. The new version adds a -sortedby()- option, which decides which variables will be recognized by Stata as defining the sort order of the new extended output dataset (although it does not affect the actual order of the observations). It also has an -order- option, specifying that these sort order variables will be the first variables in the new dataset, and a -fast- option for programmers, corresponding to the -nopreserve- option to be introduced soon in Stata 11.

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: [email protected] 
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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

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

TITLE
      expgen: Duplicate observations and add generated variables

DESCRIPTION/AUTHOR(S)
      The program expgen is an extended version of expand. It replaces each
      observation in the current dataset with multiple copies of the observation,
      sorted in the order of the original observations. It can also generate new
      variables, including a variable containing the sequential order of a
      duplicate observation in the set of duplicate observations from the same
      original observation (so that if the old observation has k duplicates, then
      these duplicates are numbered from 1 to k in the new variable). expgen is
      useful if the user has a dataset of repeated measures. For instance, in a
      medical setting, the original dataset may contain one observation per
      patient, and multiple variables containing repeated measures on the same
      patient, and the user may want to expand the original dataset into a new
      dataset, with one observation per repeated measure.
      
      Author: Roger Newson
      Distribution-Date: 26june2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      expgen.ado
      expgen.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index