Statalist


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

st: replace command


From   "Ziad El-Khatib" <Ziad.El-Khatib@ki.se>
To   statalist@hsphsun2.harvard.edu
Subject   st: replace command
Date   Mon, 8 Oct 2007 04:54:03 -0700

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index