Re: [Rd] Rd] Numerics behind splineDesign

2012-08-02 Thread Terry Therneau
el-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Terry Therneau Sent: Thursday, August 02, 2012 6:10 AM To: r-devel@r-project.org; Nathaniel Smith Subject: Re: [Rd] Rd] Numerics behind splineDesign On 08/02/2012 05:00 AM, r-devel-requ...@r-project.org wrote: Now I just

Re: [Rd] Rd] Numerics behind splineDesign

2012-08-02 Thread William Dunlap
ust 02, 2012 6:10 AM > To: r-devel@r-project.org; Nathaniel Smith > Subject: Re: [Rd] Rd] Numerics behind splineDesign > > > > On 08/02/2012 05:00 AM, r-devel-requ...@r-project.org wrote: > > Now I just have to grovel over the R code in ns() and bs() to figure > > out

Re: [Rd] Rd] Numerics behind splineDesign

2012-08-02 Thread Nathaniel Smith
On Thu, Aug 2, 2012 at 2:09 PM, Terry Therneau wrote: > > > On 08/02/2012 05:00 AM, r-devel-requ...@r-project.org wrote: >> >> Now I just have to grovel over the R code in ns() and bs() to figure >> out how exactly they pick knots and handle boundary conditions, plus >> there is some code that I d

Re: [Rd] Rd] Numerics behind splineDesign

2012-08-02 Thread Terry Therneau
On 08/02/2012 05:00 AM, r-devel-requ...@r-project.org wrote: Now I just have to grovel over the R code in ns() and bs() to figure out how exactly they pick knots and handle boundary conditions, plus there is some code that I don't understand in ns() that uses qr() to postprocess the output from

Re: [Rd] Numerics behind splineDesign

2012-08-02 Thread Bert Gunter
Thanks Peter. So it was I who was being too "hasty." (heh-heh).* -- Bert *Yes, it was bad once. So twice makes it ... what, pathetic? On Wed, Aug 1, 2012 at 9:17 AM, peter dalgaard wrote: > > On Aug 1, 2012, at 18:03 , Bert Gunter wrote: > >> Inline... >> >> On Wed, Aug 1, 2012 at 8:36 AM, Na

Re: [Rd] Numerics behind splineDesign

2012-08-02 Thread Bert Gunter
Inline... On Wed, Aug 1, 2012 at 8:36 AM, Nathaniel Smith wrote: > Thanks everyone for the suggestions. > > On Wed, Aug 1, 2012 at 2:39 PM, peter dalgaard wrote: >> >> On Jul 31, 2012, at 15:46 , Bert Gunter wrote: >> >>> Well, I would first check the references given in the Help file!. >>> That

Re: [Rd] Numerics behind splineDesign

2012-08-01 Thread peter dalgaard
On Aug 1, 2012, at 18:03 , Bert Gunter wrote: > Inline... > > On Wed, Aug 1, 2012 at 8:36 AM, Nathaniel Smith wrote: >> Thanks everyone for the suggestions. >> >> On Wed, Aug 1, 2012 at 2:39 PM, peter dalgaard wrote: >>> >>> On Jul 31, 2012, at 15:46 , Bert Gunter wrote: >>> Well, I wo

Re: [Rd] Numerics behind splineDesign

2012-08-01 Thread Nathaniel Smith
Thanks everyone for the suggestions. On Wed, Aug 1, 2012 at 2:39 PM, peter dalgaard wrote: > > On Jul 31, 2012, at 15:46 , Bert Gunter wrote: > >> Well, I would first check the references given in the Help file!. >> That's what they're for, no? Hastie's book is likely to more complete >> on the

Re: [Rd] Numerics behind splineDesign

2012-08-01 Thread peter dalgaard
On Jul 31, 2012, at 15:46 , Bert Gunter wrote: > Well, I would first check the references given in the Help file!. > That's what they're for, no? Hastie's book is likely to more complete > on the algebra, I think. > > You might also be interested in the relevant chapters of Friedman, > Hastie,

Re: [Rd] Numerics behind splineDesign

2012-08-01 Thread Bert Gunter
Well, I would first check the references given in the Help file!. That's what they're for, no? Hastie's book is likely to more complete on the algebra, I think. You might also be interested in the relevant chapters of Friedman, Hastie, et. al "The Elements of Statistical Learning Theory," which m

Re: [Rd] Numerics behind splineDesign

2012-07-31 Thread Ben Bolker
... I took the original poster's word for it that there were no citations in the help files (sorry, that got snipped from my reply because Gmane was complaining ... " I notice that the help pages for these functions don't seem to have any citations.") Now that I took 30 seconds to go back and loo

Re: [Rd] Numerics behind splineDesign

2012-07-31 Thread Ben Bolker
Nathaniel Smith pobox.com> writes: > I find myself needing to be able to reproduce the spline bases that R > computes when using ns() and bs() -- but without using R. Before I go > diving headfirst into the C code in > ./src/library/splines/src/splines.c, are there any simpler references > anyone

[Rd] Numerics behind splineDesign

2012-07-31 Thread Nathaniel Smith
Hi all, I find myself needing to be able to reproduce the spline bases that R computes when using ns() and bs() -- but without using R. Before I go diving headfirst into the C code in ./src/library/splines/src/splines.c, are there any simpler references anyone might recommend? I notice that the he