Many thanks to Nick Winter, Radu, and Nick Cox for their helpful
responses. I was wondering, how should I have found the inrange
function? I have it installed on Stata 7, but a findit or help
inrange or help function didn't seem to turn it up.
Thanks,
Jean
> Subject: st: replacing variables
>
> Is it possible to shorten the 'if' statement in the replace below
> and still retain the upper and lower bounds?
>
> replace hsgrad = 1 if grade>=9 & grade<=12
>
> Thanks,
>
> Jean Roth
> National Bureau of Economic Research
> www.nber.org/data
*
* 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/