Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: New package -insingap- on SSC
From
"Roger B. Newson" <[email protected]>
To
"[email protected]" <[email protected]>
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
Roger
References
Newson RB. From resultssets to resultstables in Stata. The Stata Journal
2012; 12(2): 191–213. Purchase from
http://www.stata-journal.com/article.html?article=st0254
--
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 insingap from http://www.imperial.ac.uk/nhli/r.newson/stata11
---------------------------------------------------------------------------
TITLE
insingap: Insert a single gap observation at the top of each by-group
DESCRIPTION/AUTHOR(S)
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)
insingap.ado
insingap.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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/