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

st: -cluster- dissimilarity measures


From   Stas Kolenikov <skolenik@email.unc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: -cluster- dissimilarity measures
Date   Sat, 16 Nov 2002 19:17:39 -0500 (EST)

Dear statalisters (and, to a greater extent, Stata staff),

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?

 ---                                    Stas Kolenikov
 --       Ph.D. student in Statistics at UNC-Chapel Hill
 - http://www.komkon.org/~tacik/  -- Stas.Kolenikov@unc.edu

* This e-mail and all attachments to it are not intended to provide any
* reasonable point of view and was transmitted to you in error. It
* should be immediately deleted by all recepients unless they really
* enjoy communicating with the author :). Other restrictions apply.

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