Re: [R] Avoid loop with the integrate function

2012-04-09 Thread Navin Goyal
Hi Berend, I now understand what you were explaining. It works great. Thanks a lot for your time and help. I really appreciate it. Navin Goyal On Mon, Apr 9, 2012 at 1:26 AM, Berend Hasselman wrote: > > On 09-04-2012, at 01:26, Navin Goyal wrote: > > > Hi, > > I am not sure I follow the scala

Re: [R] Avoid loop with the integrate function

2012-04-08 Thread Berend Hasselman
On 09-04-2012, at 01:26, Navin Goyal wrote: > Hi, > I am not sure I follow the scalar part of the suggestion. Could you please > elaborate it a bit more? Each row has a different value of score for each > subject at each time point. That last remark has nothing to do with it. The point is tha

Re: [R] Avoid loop with the integrate function

2012-04-08 Thread Navin Goyal
Hi, I am not sure I follow the scalar part of the suggestion. Could you please elaborate it a bit more? Each row has a different value of score for each subject at each time point. Also I simplified the example but there are other terms that change over each row for each subject. Does this mean t

Re: [R] Avoid loop with the integrate function

2012-04-08 Thread Berend Hasselman
On 08-04-2012, at 08:28, Navin Goyal wrote: > Dear R users, > I am running a loop with the integrate function. I have pasted the code > below. I am integrating a function from time=0 to the time value in every > row. > I have to perform this integration over thousands of rows with different > par