[R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread Claudia Penaloza
(corrected version of previous posting) I fit a GAM to turtle growth data following methods in Limpus Chaloupka 1997 (http://www.int-res.com/articles/meps/149/m149p023.pdf). I want to obtain figures similar to Fig 3 c f in Limpus Chaloupka (1997), which according to the figure legend are

Re: [R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread David Winsemius
On May 14, 2010, at 11:41 AM, Claudia Penaloza wrote: (corrected version of previous posting) I fit a GAM to turtle growth data following methods in Limpus Chaloupka 1997 (http://www.int-res.com/articles/meps/149/m149p023.pdf). I want to obtain figures similar to Fig 3 c f in Limpus

Re: [R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread Robert A LaBudde
It's a piecewise cubic function. All you need are the knots and the coefficients. You can then right down the analytic formula for the integral. It doesn't need to be numerically integrated. At 11:57 AM 5/14/2010, David Winsemius wrote: On May 14, 2010, at 11:41 AM, Claudia Penaloza wrote:

Re: [R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread David Winsemius
On May 14, 2010, at 11:57 AM, David Winsemius wrote: On May 14, 2010, at 11:41 AM, Claudia Penaloza wrote: (corrected version of previous posting) I fit a GAM to turtle growth data following methods in Limpus Chaloupka 1997 (http://www.int-res.com/articles/meps/149/m149p023.pdf). I

Re: [R] Cubic B-spline, how to numerically integrate?

2010-05-14 Thread Frank E Harrell Jr
On 05/14/2010 11:36 AM, David Winsemius wrote: On May 14, 2010, at 11:57 AM, David Winsemius wrote: On May 14, 2010, at 11:41 AM, Claudia Penaloza wrote: (corrected version of previous posting) I fit a GAM to turtle growth data following methods in Limpus Chaloupka 1997