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

RE: st: egen


From   "Sayer, Bryan" <[email protected]>
To   "'[email protected]'" <[email protected]>
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.
[email protected]

-----Original Message-----
From: Nick Cox [mailto:[email protected]]
Sent: Friday, January 31, 2003 12:50 PM
To: [email protected]
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 
[email protected] 


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