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

st: RE: RE: missing values


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: missing values
Date   Wed, 16 Apr 2003 17:37:28 +0100

Greg Branch
 
> <<"I have a data file that has the value 6 for the response 
> don't know
> in attitude items. I want to specify the value '6' as 
> missing so that it
> is dropped from analyses.">>
> 
> "replace attitude = . if ..."
> 
> I think you can also do
> 
> "regress...... If attitude ~= 6"

This is true. Syntactically, you can do this, but 
you are then committed to remembering to do this 
on all analyses which should be comparable. It 
is better to fix the missings once and for all.

In addition to -mvdecode- mentioned by 
various people, note that Stata 8 supports 
different kinds of missing values, and the 
intention was to allow distinctions between 
(e.g.) 

	did not answer 
	don't know 
	not applicable 
	Schrodinger's cat 

Nick 
n.j.cox@durham.ac.uk 
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index