Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New version of -expgen- on SSC

From   "Newson, Roger B" <>
To   <>
Subject   st: New version of -expgen- on SSC
Date   Sun, 20 May 2007 20:12:41 +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

The -expgen- package is an extended version of -expand-, and is
described as below on my website. The new version is written in Stata
Version 9, and has a Stata 9 on-line help file. However, users of Stata
versions 6, 7 and 8 can still download the old Stata 6 version from my
website by typing, in Stata,

net from

and then selecting and downloading the -expgen- package available there.

Best wishes


Roger Newson
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

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

package expgen from

      expgen: Duplicate observations and add generated variables

      The program expgen is an extended version of expand. It replaces
      observation in the current dataset with multiple copies of the
      sorted in the order of the original observations. It can also
generate new
      variables, including a variable containing the sequential order of
      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
      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: 20may2007
      Stata-Version: 9

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