Quantcast

B-spline/smooth.basis derivative matrices

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

B-spline/smooth.basis derivative matrices

Vassily Shvets
Hello,
I've noticed that SPLUS seems to have a function for evaluating derivative matrices of splines. I've found the R function that evaluates matrices from 'smooth.spline'; maybe someone has written something to do the same with smooth.basis?
regards,
s

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: B-spline/smooth.basis derivative matrices

vito.muggeo
dear s,

If you are willing to use B-splines placing p knots, say, (rather than smoothing splines
placing n knots), you could have a look to the functions splineDesign() or spline.des()
(argument derivs) in the package "splines".

vito



On Fri, 24 Feb 2012 12:28:58 -0800 (PST), Vassily Shvets wrote

> Hello,
> I've noticed that SPLUS seems to have a function for evaluating derivative
> matrices of splines. I've found the R function that evaluates matrices from
> 'smooth.spline'; maybe someone has written something to do the same with smooth.basis?
> regards,
> s
>
> ______________________________________________
> [hidden email] 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.


--
Open WebMail Project (http://openwebmail.org)

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: B-spline/smooth.basis derivative matrices

aleksandr shfets
Hello again,
Thank you, vito for these functions: I've been able to look at the smoothing spline matrix and its derivatives that I constucted with functions "create.bspline.basis" and "smooth.basis"

Understanding from Hastie and Tishbirani that the S(lambda)-- the penalty matrix

25 февраля 2012, 15:11 от "vito.muggeo" <[hidden email]>:

> dear s,
>
> If you are willing to use B-splines placing p knots, say, (rather than smoothing splines
> placing n knots), you could have a look to the functions splineDesign() or spline.des()
> (argument derivs) in the package "splines".
>
> vito
>
> On Fri, 24 Feb 2012 12:28:58 -0800 (PST), Vassily Shvets wrote
> > Hello,
> > I've noticed that SPLUS seems to have a function for evaluating derivative
> > matrices of splines. I've found the R function that evaluates matrices from
> > 'smooth.spline'; maybe someone has written something to do the same with smooth.basis?
> > regards,
> > s
> >
> > ______________________________________________
> > [hidden email] 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.
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
______________________________________________
[hidden email] 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.
Loading...