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   "louis boakye-yiadom" <[email protected]>
To   [email protected]
Subject   Re: st: Using the -if- qualifier with a string variable
Date   Sun, 03 Apr 2005 15:35:21 +0000

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/



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