From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | Re: repost: -cond()- function |
Date | Thu, 01 Jan 2004 11:51:10 -0500 |
At 11:20 AM 1/1/2004 -0500, Michel Camus wrote:
I experience the same "problem" as you do, Paul.However, the docs say this about the cond command:
I believe it has to do with "binary logic". The logical condition ("chol") always evaluates to 0 or 1, and nothing else, it never evaluates to "9" even if the original variable does have "9" as one value. The same happens even if your missing values in "chol" were already coded as "." See http://www.stata.com/support/faqs/data/values.html by W. Gould on "Logical expressions and missing values". The way to have missing values is tocondition your expression as follows :
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |