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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.