Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: distance generated by spatwmat

From   taehyun nam <[email protected]>
To   [email protected]
Subject   st: distance generated by spatwmat
Date   Fri, 24 Oct 2003 13:03:58 -0700 (PDT)

My dataset contains latitude/longitude and I used the
two variable in order to create weight matrix using
spatwmat.  When you use the option, band [for example,
band(0 3)], you get calculated distances such as
minimum, maximum, median and so on in digitized
Is there anyone who would tell me the way I can get
actual distance, for example in km or mile, from the
digitized distance?   


st: Re: Latitude/longitude in spatwmat


From: "Michael Blasnik" <[email protected]>
Subject: st: Re: Latitude/longitude in spatwmat
Date: Mon, 29 Sep 2003 15:12:55 -0400

Next Article (by Date): st: programmable windowing
keys? Buzz Burhans
Previous Article (by Date): st: Latitude/longitude in
spatwmat "Glen Waddell"
Articles sorted by: [Date] [Author] [Subject] 


Well, latitude  to distance is fairly simple -- it's
just the circumference
of the earth divided by 360, which equals about 69
miles.  The longitude
conversion will vary with latitude.  At the equator
(lat=0 degrees), one
degree longitude equals one degree latitude.  The
value drops as move away
from the equator of course.  I think that at latitudes
of 30, 40, and 50
degrees it's about 60, 53, and 44 miles respectively. 
You can use some trig
if you need to get more precise.

Michael Blasnik
[email protected]

----- Original Message ----- 
From: "Glen Waddell" <[email protected]>
To: "Statalist" <[email protected]>
Sent: Monday, September 29, 2003 2:30 PM
Subject: st: Latitude/longitude in spatwmat

> I currently have latitude and longitude coordinates
in a dataset but
> need to have them projected onto an {x,y} plane in
order to take
> advantage of the 'spatwmat' command.  Do you know if
there is a
> conversion equation, or at least a legitimate
approximation for small
> areas?
> Glen
> ____________________________
> Glen R. Waddell
> Department of Economics
> University of Oregon
> Eugene, OR 97403-1285
> phone: (541) 346-1259
> fax: (541) 346-1243

Taehyun Nam

�����Ϻ��� ������ ������ ���ô�.  
Let's not buy or read The Chosun Daily

Check My Website

Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
*   For searches and help try:

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