Statalist


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

Re: st: Constructing assignment var for Spatial RDD: For each id in region 1 need shortest distance to an id in region 0


From   Roy Wada <[email protected]>
To   [email protected]
Subject   Re: st: Constructing assignment var for Spatial RDD: For each id in region 1 need shortest distance to an id in region 0
Date   Fri, 27 Nov 2009 16:13:53 -0800

> distance to each village in region 0 (1), as
> d=sqrt[ (y_1-y_0)^2  +  (x_1-x_0)^2  ],

If you are going to use Euclidean distance take a look at -nearest- from ssc.

Roy

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