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

Re: st: -cluster- dissimilarity measures


From   khigbee@stata.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -cluster- dissimilarity measures
Date   Mon, 18 Nov 2002 09:35:01 -0600

Stas Kolenikov <skolenik@email.unc.edu> asks:

> is there an easy way to code the distance between two points on the Earth
> surface along the great-circle arc given their longitudes and latitudes? I
> want to cluster a few geographical locations... I know a messy way to do
> it -- to go through all 2400 lines of cluster.ado and find out where the
> (dis)similarity measures are computed, and make a new one that I need. (Is
> this possible with the programmer's extensions to cluster that Stata
> provides for, instead? I looked it up rather quickly, and decided it is
> not quite what I need.) My gut feeling though is that it is the
> responsibility of the built-in -_cluster-, so there is not much I can do
> to define my own distance function, is there?


The distance calculations are done in C code, and so not
alterable by users.  There are many distance, dissimilarity, and
similarity measures available, but not the one you mention in
your note.


Ken Higbee    khigbee@stata.com
StataCorp     1-800-STATAPC

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