On Sat, 21 Sep 2019, Alecos Papadopoulos wrote:
[Jack] you mean, something like this?
<hansl>
function series rankingalt(series x)
matrix a = aggregate(const, x)
return replace(x, a[,1], cum(0 | a[1:rows(a)-1,2]))
end function
</hansl>
AP: To the extend I understand the code, I don't think so. I want a series
that has the length of the sample, exactly as the "ranking" function gives.
The only difference between the "ranking" function and the
"rankingalt"
function is that the "rankingalt" function
But this is what the function does. Have you tried it?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------