[R] using a loop with an integration

2012-04-22 Thread piltdownpunk
Hi, all. I've written a function that returns the survival function for a Gompertz mortality model. I've specified the two model parameters. Using a simple integration, I can calculate the life expectancy at any age. Is there a way I can use a loop with the integration that will quickly

Re: [R] using a loop with an integration

2012-04-22 Thread David Winsemius
On Apr 22, 2012, at 3:41 PM, piltdownpunk wrote: Hi, all. I've written a function that returns the survival function for a Gompertz mortality model. I've specified the two model parameters. Using a simple integration, I can calculate the life expectancy at any age. Is there a way I