On Tue, 23 May 2017, Sven Schreiber wrote:
Or I could do 'myresids[mrandgen(i, 1, T, H, 1)]', which
should work for any
H and would hopefully be efficient (?). However, IMHO it's not easily
readable, because only the parameter H is actually really important in this
context, the rest is just confusing syntax.
IMO if you split the above action into two, the code is readable enough:
<hansl>
ndx = mrandgen(i, 1, T, H, 1)
myboot = myresids[ndx]
</hansl>
-------------------------------------------------------
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
-------------------------------------------------------