[Gretl-users] matrix indexes question after sort
Riccardo (Jack) Lucchetti
r.lucchetti at univpm.it
Thu Apr 24 13:31:39 EDT 2008
On Thu, 24 Apr 2008, Franck Nadaud wrote:
> Well, my problem is that I do not see how to grab not the values of sorted
> distances but the indexes of data points. Here is the code :
...
You're right, there's no easy way. However, you can use the iminc() or
iminr() functions plus some little trick. Can you check if the attached
script does what you want?
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti at univpm.it
http://www.econ.univpm.it/lucchetti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distances.inp
Type: application/x-gretlscript
Size: 527 bytes
Desc:
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20080424/24ae5485/distances.bin
More information about the Gretl-users
mailing list