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

Re: st: Using the -if- qualifier with a string variable


From   Richard Williams <Richard.A.Williams.5@nd.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Using the -if- qualifier with a string variable
Date   Sun, 03 Apr 2005 10:28:21 -0500

At 03:15 PM 4/3/2005 +0000, louis boakye-yiadom wrote:
Dear All,
Can the -if- qualifier be used with a string variable? If so, how is it done? I gave the following command, and had the shown result:
. keep if facility==bir
bir not found
r(111);

"facility" is a string variable and "bir" is one of the values "facility" takes. Thank you.

keep if facility=="bir"

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