Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: New package -insingap- on SSC

From   "Roger B. Newson" <>
To   "" <>
Subject   st: New package -insingap- on SSC
Date   Fri, 22 Mar 2013 14:08:03 +0000

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

The -insingap- package is described as below on my website, and is an easy-to-use front for the more comprehensive (and less easy to use) -ingap-, also usng -sdecode-. Both of these packages can also be downloaded from SSC. -insingap- simplifies the task of creating tables from resultssets and other datasets (see Newson, 2012).

Best wishes



Newson RB. From resultssets to resultstables in Stata. The Stata Journal 2012; 12(2): 191–213. Purchase from

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

      insingap: Insert a single gap observation at the top of each by-group

      insingap inputs a dataset and (optionally) a list of by-variables.
      It sorts the dataset by these by-variables (if present), and then
      inserts a single gap observation at the beginning of each by-group,
      or at the top of the dataset if there are no by-variables.  In the
      gap observations, values of the non-by variables are initialized to
      missing.  However, the user may specify an existing string variable
      as a row label variable, and set its value in the gap observations
      to a value derived by decoding a subset of the by-variables, using
      the msdecode module of the SSC package sdecode.  These gap
      observations may be useful when presenting the dataset.  For
      instance, the dataset may be used to produce tables, using the SSC
      package listtab.  Alternatively, the dataset may be used to produce
      plots, using the SSC package sencode to encode the row variable.
      insingap requires the packages sdecode and ingap, which the user can
      download from SSC.

      Author: Roger Newson
      Distribution-Date: 20march2013
      Stata-Version: 11

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index