Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Latitude, Longitude and distances


From   "Feiveson, Alan H. (JSC-SK311)" <alan.h.feiveson@nasa.gov>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Latitude, Longitude and distances
Date   Wed, 30 Aug 2006 12:33:53 -0500

Here's a nice website that discusses this problem.

http://www.mathforum.com/library/drmath/view/51711.html 

Al Feiveson

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of MA V
Sent: Wednesday, August 30, 2006 12:06 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Latitude, Longitude and distances

Dear statalist users,
My problem is the following:
(and I am sending it again to the statlist since the follow-ups to my
initial email were not follow-ups to my question) I have a dataset that
has 3 variables: location_id, latitude, longitude.
I would like to calculate the distances between the locations but I'm
not sure of what is the best way of storing this information in Stata.
Suppose we have 30 locations (i.e. 30 observations).
Any ideas on how to to calculate the distances and, more importantly, on
how to store them (in an effective way, for future manipulation)?
Thanks for your help!

_________________________________________________________________
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour
ce=wlmailtagline

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

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