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

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


From   "louis boakye-yiadom" <louisby@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Using the -if- qualifier with a string variable
Date   Sun, 03 Apr 2005 15:15:15 +0000

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.

Louis


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