Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New version of -descsave- on SSC


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: New version of -descsave- on SSC
Date   Wed, 27 Apr 2005 12:35:56 +0100

Hello All

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

-descsave- is described as below on my website, and has now been upgraded to Stata 8, just in time for the shipping of Stata 9. As part of this upgrade, the -charlist()- option has now been extended to allow asterisks (*) as well as characteristic names. -descsave- now replaces all asterisks in the -charlist()- option with a list of the names of all characteristics present for all the variables, and then removes duplicates from the list (rightmost occurrences first). Therefore, if you specify

descsave, saving(myresults.dta) dofile(mydofile.do) charlist(*)

then the list of characteristics saved will contain all characteristics present for any variable. And if you specify

descsave, saving(myresults.dta) dofile(mydofile.do) charlist(omit *)

then the list of characteristics saved will contain all the same characteristics, but will start with the -omit- characteristic, which will therefore be stored in the variable -char1- in the output dataset -myresults.dta-.

Stata 7 users can still download the old Stata 7 version of -descsave- from my website at

http://www.kcl-phs.org.uk/rogernewson/stata7

Best wishes

Roger



---------------------------------------------------------------------------------------
package descsave from http://www.kcl-phs.org.uk/rogernewson/stata8
---------------------------------------------------------------------------------------

TITLE
descsave: Extension of describe creating output files

DESCRIPTION/AUTHOR(S)
descsave is an extended version of describe, which creates up to 2 output files.
One is a Stata data set with 1 observation per variable and data on variable
attributes (name, type, format, variable label, value label, and selected
characteristics). The other is a Stata do-file which reconstructs these
attributes when run, assuming that the variable exists and is of the correct
mode (numeric or string). descsave can be used to reconstruct variables that
have been output to a generic spreadsheet using outsheet and then input using
insheet, or variables that have been extracted (using factext) from the label
variable of an output data set created by parmby or parmest. (The parmest and
factext packages are downloadable from this website or from SSC.)

Author: Roger Newson
Date: 26 April 2005
Stata version: 8

INSTALLATION FILES (click here to install)
descsave.ado
descsave.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/




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