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

st: New package -cgroup- on SSC

From   "Newson, Roger B" <>
To   "''" <>
Subject   st: New package -cgroup- on SSC
Date   Mon, 30 Nov 2009 15:50:48 +0000

Thanks to Kit Baum, a new package -cgroup- is now available for download from SSC. In Stata, use the -ssc- command to do this.

The -cgroup- package is described as below on my website. I wrote it to simplify the task of inputting data from generic spreadsheets, keyed by multiple string variables, and converting these data to Stata datasets, keyed and sorted by numeric factor variables of the kind used by Stata Version 11. It is useful in conjunction with the -sencode- package, which you can also download from SSC.

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

      cgroup: Group contiguous observations with identical values of a varlist

      cgroup inputs a list of variables specified by a varlist, and
      generates, as output, a new integer-valued variable,
      indicating, in each observation, membership of a group of
      contiguous observations with identical values of the varlist.
      It is therefore a non-sorting version of gsort.
      Author: Roger Newson
      Distribution-Date: 30november2009
      Stata-Version: 10

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

*   For searches and help try:

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