Thanks, Richard, Nick, and Roger for your answers. That solves my problem.
Louis
From: Richard Williams <[email protected]>
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/