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

CDC Data (was: Re: st: On choosing a stats package...)


From   "David L. Van Brunt" <[email protected]>
To   <[email protected]>
Subject   CDC Data (was: Re: st: On choosing a stats package...)
Date   Fri, 24 Jan 2003 21:54:51 -0500

Since we've changed topic from the original post, I took the liberty of
editing the subject line. On your Q:

On 1/23/03 10:06 PM, "Ed Bini" <[email protected]> wrote:

> I agree with David's assessment of Stata. Stata 8 is awesome. I am an SPSS
> junkie too but am trying to learn Stata for large CDC surveys (NHANES, BRFSS
> etc). David I have a question for you. The CDC surveys are in ASCII or SAS
> format. How do you get them into Stata and is there a way to get the
> variable and value labels into Stata without having to use SAS? Thanks.
> Ed

Sadly, none that I know of. For NAMCS, they actually distribute SAS code to
get the data in. I just ran that, then used STAT/Transfer (or you could use
DBMS Copy, I suppose) to make it a Stata data set. All the variable names
carried over fine, but the way SAS handles variable labels, that's not
possible as far as I know. SAS keeps variable labels separately, in a format
file that you apply when you need it. The value labels are not stored with
the data.

On the bright side, this keeps the files smaller.

HTH,

    Dave

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