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

st: New package -keyby- on SSC

From   "Newson, Roger B" <>
To   <>
Subject   st: New package -keyby- on SSC
Date   Fri, 31 Aug 2007 18:03:30 +0100

Thanks to Kit Baum, a new package -keyby- (described as below on my
website) is now available for download from SSC. In Stata, use the -ssc-
command to do this.

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
Web page:
Departmental Web page:

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

package keyby from

      keyby: Key the dataset by a variable list

      keyby sorts the dataset currently in memory by the variables in a
      varlist, checking that the variables in the varlist uniquely
      identify the observations.  This makes the variables in the
      a primary key for the dataset in memory.  If the user does not
      specify otherwise, then keyby also reorders the variables in the
      varlist to the start of the variable order in the dataset, and
      checks that all values of these variables are nonmissing.  keyby
      can be useful if the user combines multiple datasets using merge,
      which may cause a dataset in memory to become unsorted.
      Author: Roger Newson
      Distribution-Date: 24august2007
      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