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

Re: st: Survey Data


From   Ted Anagnoson <anag999@silcom.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Survey Data
Date   Wed, 10 Sep 2003 17:04:03 -0700

You want to check out missing data in the manual.
You will basically recode your 997, 998, and 999 to . (dot)

Ted Anagnoson



At 05:25 PM 9/10/03 -0600, you wrote:
Hello Everyone,

I have survey data from STATS CANADA,where some of the responses to questions
surveyed contain codes for certain responses where others are the numerical
data I need. In other words, some observations are in code where others are
not.

For example the survey asks what age the respondent was when they were
assaulted.  The respondent can answer the age they were during the incident,
and there is the following code that was entered by the survey team:

Not Applicable: 997
Don't Know: 998
Not Stated: 999

Of course when I ask STATA to calculate Summary Statistics, it uses the code
as if they were observations so my mean values are through the roof.

How do I get stata to ignore the observations which contain the code?


*
*   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–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index