--- Stata Chris wrote:
> You're right that the help menu for -nearest- says if conditions are
> allowed, yet whenever I try to execute nearest in combination with
> some if command (I also tried simple ones, to make sure it's not just
> due to the specifics of which if-command I use), Stata tells me
> "option if not allowed; r(198)". Not sure what to make of that?
This error message suggest that you put the -if- statement after the
comma, but -if- is not an option (it almost never is) and should thus appear before the comma.
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/