Statalist


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

RE: st: spatial analysis - DISTANCE


From   Roy Wada <[email protected]>
To   <[email protected]>
Subject   RE: st: spatial analysis - DISTANCE
Date   Sun, 30 Aug 2009 11:04:46 -0700

Looks like it's getting cutoff again. There seems to be a 
limit on emails received by the Statalist server from Hotmail 
accounts. Just get it from ssc when it's up there.
 
Roy
 
 
... continued:

* Great Circle Distance Formulas
  foreach var in `dist' {
   replace ``dist'New'=3963 * acos(sin(``latitude'New'/57.2958) * sin(`latitude'/57.2958) + cos(``latitude'New'/57.2958) * cos(`latitude'/57.2958) * cos(``longitude'New'/57.2958-`longitude'/57.2958))
   replace ``dist'New'=. if ``dist'New'>`less'
   replace ``dist'New'=. if ``dist'New'
_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
*
*   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