Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Saving Output from "describe" as its own dataset


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   RE: st: Saving Output from "describe" as its own dataset
Date   Sun, 16 Sep 2007 20:48:41 +0100

Magali might like to use the -descsave- package, downloadable from SSC
using the -ssc- command in Stata. This package produces an output Stata
dataset (or resultsset) and data on the variable names, storage types,
formats, value labels, variable labels, and (optionally) variable
characteristics. This dataset can be saved to memory and/or saved to
disk and/or listed.

I hope this helps.

Roger


Roger Newson
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: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of n j cox
Sent: 16 September 2007 15:51
To: [email protected]
Subject: Re: st: Saving Output from "describe" as its own dataset

I don't see how an indirect method of passing
-describe- output to a dataset can ever be easier
than using -describe- directly. Perhaps what you
really want is something like -ds-.

Nick
[email protected]

Magali Fassiotto

I have a large dataset and would like to have an easy way to look at
all the variables and variable types in the dataset.  Ideally, I would
like to create a dataset from the output of the "describe" command.
That is, have a new dataset with a list of all the variable names and
storage types.  Is there an easy way to do this automatically without
having to cut and paste anything?


*
*   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/

*
*   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