Statalist


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

st: New versions of -ingap-, -keyby- and -listtex- on SSC


From   "Newson, Roger B" <[email protected]>
To   statalist <[email protected]>
Subject   st: New versions of -ingap-, -keyby- and -listtex- on SSC
Date   Mon, 27 Apr 2009 11:03:52 +0100

Thanks to Kit Baum, new versions of the -ingap-, -keyby- and -listtex- packages are now available for download from SSC. In Stata, use the -ssc- command to do this, or use -adoupdate- if you have previous versions of the packages.

The -ingap-, -keyby- and -sdecode- packages are defined as below on my website, and also in Newson (2006) and references from there. The new version of -ingap- adds a -replace- suboption to the variable-generating options -neworder()- and -gapindicator()-, allowing the user to replace existing variables of the same name. (It also adds the necessary checks for variable name clashes that would otherwise cause all kinds of confusion as a result of this unconventional practice.) In the new -keyby- package, the -keybygen- module now checks for name clashes between the variable-generating -generate()- option and existing variables in the input -varlist-, which might otherwise cause the same kind of confusion. The new version of -listtex- adds 2 extra .sthlp files which point the user to -listtex.sthlp-, if the user types

whelp listtex_vars

for help on the -listtex_vars- module of -listtex-, or if the user types

whelp listtex_rstyle

for help on the -listtex_rstyle- module of -listtex-.

Best wishes

Roger

References

Newson R. Resultssets, resultsspreadsheets, and resultsplots in Stata. Presented at the German Stata Users' Group Meeting, Mannheim University,Friday, 31 March 2006. Download from:
http://econpapers.repec.org/paper/bocdsug06/01.htm


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 ingap from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------------------

TITLE
      ingap: Insert gap observations in a dataset

DESCRIPTION/AUTHOR(S)
      ingap inserts gap observations into a list of positions in an existing data
      set. All existing variables in the dataset will have missing values in the
      gap observations, unless the user specifies otherwise.  Often, the user
      specifies non-missing values in the gap observations for one particular
      existing string variable, known as the row label variable. This row label
      variable may then be output with a list of other variables to form a
      publication-ready table with labelled gap rows, using the listtex package.
      Alternatively, the row label variable may be encoded, using the sencode
      package, to form a numeric variable with value labels. This numeric variable
      can then be plotted on one axis of a graph to define axis labels, including
      gap axis labels.  The sencode and listtex packages are downloadable from SSC
      or from this website.
      
      Author: Roger Newson
      Distribution-Date: 24april2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      ingap.ado
      ingap.sthlp
------------------------------------------------------------------------------------
(click here to return to the previous screen)

------------------------------------------------------------------------------------
package keyby from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------------------

TITLE
      keyby: Key the dataset by a variable list

DESCRIPTION/AUTHOR(S)
      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
      varlist 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.
      keybygen sorts the dataset currently in memory by the variables in
      a varlist, preserving the existing order of observations within
      each by-group, and then generates a new variable, containing the
      sequential order of each observation within its by-group, to form
      a primary key with the existing variables in the varlist.  keyby
      and keybygen 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: 26april2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      keyby.ado
      keybygen.ado
      keyby.sthlp
      keybygen.sthlp
------------------------------------------------------------------------------------
(click here to return to the previous screen)

------------------------------------------------------------------------------------
package listtex from http://www.imperial.ac.uk/nhli/r.newson/stata10
------------------------------------------------------------------------------------

TITLE
      listtex: List variables as rows of a TeX, HTML or word processor table

DESCRIPTION/AUTHOR(S)
      listtex outputs a list of variables to the Stata log or to a file as TeX,
      HTML or word processor table rows, which can then be inserted into a TeX,
      HTML or word processor table by cutting and pasting and/or file linking
      and/or embedding (eg using the TeX \input command). listtex produces the
      table rows, but may also produce a set of header lines before the table
      rows and/or footer lines after the table rows, containing preambles and/or
      table definitions and/or table headers and/or table footers, as specified
      by the user.
      
      Author: Roger Newson
      Distribution-Date: 26april2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      listtex.ado
      listtex_vars.ado
      listtex_rstyle.ado
      listtex.sthlp
      listtex_vars.sthlp
      listtex_rstyle.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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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