Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: replace command


From   "Alan Neustadtl" <[email protected]>
To   [email protected]
Subject   Re: st: replace command
Date   Mon, 8 Oct 2007 07:57:41 -0400

Entering  "help operators" at the command prompt shows that Stata
understand "or" to be represented as "|".

Best,
Alan


On 10/8/07, Ziad El-Khatib <[email protected]> wrote:
> Hi again
> i created new variable for weight, called weightcat and wants to replace is as
> replace weightcat = 1 if weight <= 90 or weight >= 80
>
> STATA gives 'invalid or', any kind tips about how to make such condition?
>
>
> Thank you in advance and best regards
> ziad
> *
> *   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