Hello All
Thanks to Kit Baum, a new package -subsave- is now available for download
from SSC. In Stata, use the -ssc- command to do this.
-subsave- is described as below on my website. It is similar to Nick
Cox's -savesome-, which I discovered just after writing -subsave-, and which
is also on SSC. However, -subsave- has 2 extra options, -rename()-
and -gsort()-, allowing users to rename variables and to resort observations
in the output dataset.
Best wishes
Roger
----------------------------------------------------------------------------
----
package subsave from http://www.kcl-phs.org.uk/rogernewson/stata9
----------------------------------------------------------------------------
----
TITLE
subsave: Save a subset of the dataset in memory to a disk file
DESCRIPTION/AUTHOR(S)
subsave saves a subset of the dataset currently in memory to a disk
file. This saves the user the trouble of inserting a preserve
statement before a save command and a restore statement after a save
command. This is especially useful in a group of commands between a
preserve command and a restore command, as paired preserve and restore
statements cannot be nested. In the output dataset, variables can be
renamed, and observations can be resorted.
Author: Roger Newson
Distribution-date: 30November2005
Stata-version: 9
INSTALLATION FILES (click here to install)
subsave.ado
subsave.hlp
----------------------------------------------------------------------------
----
(click here to return to the previous screen)
--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom
Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://phs.kcl.ac.uk/rogernewson/
Opinions expressed are those of the author, not the institution.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/