Re: [R] efficient way to reduce running time

2011-08-02 Thread Dennis Murphy
Hi: Could you please provide a reproducible example? In your code, (i) n is undefined; (ii) logbp is undefined. A description of what you want to do and/or a reproducible example with an expected outcome would be useful. As the bottom of each e-mail to R-help says... PLEASE do read the posti

[R] efficient way to reduce running time

2011-08-02 Thread Kathie
Dear R users, Would you plz tell me how to avoid this "for" loop blow?? I think there might be a better way to reduce running time. -- ## y1 and y2 are n*1 vectors for (k in 1:n){