[R] Possible to use array of spline functions for storing data?
Dieter Menne
dieter.menne at menne-biomed.de
Sat Mar 6 17:41:22 CET 2010
David Winsemius wrote:
>
> Dear listeRs;
>
> I am hoping to provide myself the ability to interpolate mortality
> estimates within intervals for a range of conditions and ages. I have
> four mortality tables derived from the Society of Actuaries 2001 VBT
> tables that contains interval mortality rates by starting age and year
> of duration. I would like to flexibly interpolate using a large set
> (~4MM) of ages and conditions as input to small number (~300) of
> functions, but my toy implementations puzzle me when I examine them,
> and I cannot seem to store them properly. Say you start with a vector
> of qx's:
> ....
>
How about using the polynomial representation given be polySpline in package
splines? It a slightly decorated list of knots and coefficients that could
be stored in a database.
Dieter
--
View this message in context: http://n4.nabble.com/Possible-to-use-array-of-spline-functions-for-storing-data-tp1582896p1582914.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list