Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re: st: Constructing assignment var for Spatial RDD: For each id in


From   Maarten buis <[email protected]>
To   stata list <[email protected]>
Subject   RE: Re: st: Constructing assignment var for Spatial RDD: For each id in
Date   Tue, 1 Dec 2009 00:04:20 +0000 (GMT)

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



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