Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: re: nearstat version


From   Rüdiger Vollmeier <ruediger.vollmeier@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: re: nearstat version
Date   Sun, 5 Feb 2012 08:41:50 +0100

Thanks a lot for the good advice how to run the program.

I ve got one question regarding the programming: It seems that in case
of non-identical observations with identical longitude and latitude,
the programs does not return the distance 0 but calculates the
shortest distance to non-identical latitude and longitudes. Am I
right? This is surprising and, I guess, for many users not desired. Is
it possible to change that (such that the distance 0 will be returned
in these cases)?

2012/2/3 Richard Williams <richardwilliams.ndu@gmail.com>:
> At 06:30 AM 2/3/2012, Christopher Baum wrote:
>>
>> <>
>> Actually, looking at nearstat.mata, if you -do- that routine it will
>> create the library under your current version of Mata >= 10.1, and once you
>> have that library, nearstat will use that copy. So you only need to -do-
>> this code once.
>>
>> I agree with Nick that it is somewhat mystifying to have a sequence
>>
>> ----------------
>> version 10.1
>> mata
>> void foobar( )
>> {
>> }
>> mata mlib create...
>> mata mlib add...
>> end
>>
>> -----------------
>>
>> and then end up with a Mata library that is not usable under version 10.1.
>> But as Nick suggested, the recommended inclusion of a -version- statement
>> before invoking Mata presumably just prevents the code from ever running in
>> version 9.x, and does not imply that the library will be compatible with
>> version 10.1.
>
>
> I should have kept reading before I posted. A suggestion for programmers
> though: I keep all my old versions of Stata around. If I revise a program
> that supposedly works in Stata 9, I run it in Stata 9 to make sure I haven't
> zapped something. It is really easy to use some relatively new feature and
> not realize that an earlier version of Stata has no idea what it is. You may
> want to rerelease an old version under a new name (e.g. add a 9 to the name)
> but if it is just a matter of tweaking a few lines you might as well try to
> have a single program that maintains compatibility with earlier versions of
> Stata.
>
>
> -------------------------------------------
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
> HOME:   (574)289-5227
> EMAIL:  Richard.A.Williams.5@ND.Edu
> WWW:    http://www.nd.edu/~rwilliam
>
>
> *
> *   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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index