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

RE: st: egen


From   "Sayer, Bryan" <BSayer@s-3.com>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: egen
Date   Fri, 31 Jan 2003 13:06:20 -0500

I find the missing() function to be better in general when it can be used,
which should evaluate ANY type of missing, including blanks for string
variables.

Bryan Sayer
Statistician, SSS Inc.
bsayer@s-3.com

-----Original Message-----
From: Nick Cox [mailto:n.j.cox@durham.ac.uk]
Sent: Friday, January 31, 2003 12:50 PM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: egen

<snip>

> replace SS2 = 3 if SS1 ==. & (CIVIL==1 & CIVILSUM==1 & 
> Dependants2 != .)

The habit of writing 

!= . 

is going to become dangerous as you move to Stata 8 
and make use of missing values .a to .z. The habit 
to learn for not missing is 

< . 
 
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/
*
*   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–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index