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

st: RE: inrange


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: inrange
Date   Tue, 5 Jul 2005 21:33:40 +0100

No need here to search the archives, 
as the on-line help indicates the problem. 

You are confusing -inrange()- with -inlist()-, 
I guess. 

Nick 
[email protected] 

Ssy Weng
 
> I am using Stata v8.0 and get this error message. MAT_RACE is 
> a numeric
> variable. I searched StataList archives and could not find an answer.
> 
> .         g byte ETH6X=1 if ETHNICIT==8
> (5970 missing values generated)
> 
> .         replace ETH6X =2 if inrange(MAT_RACE,1,5,6,7,9)
> 
> invalid syntax
> r(198);

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