library(sos)
???'M-spline'


       This produces ZERO matches.  If you want a nonnegative fit and 
you don't necessarily need M-splines, there are many ways to do that, 
some of which can be found with the sos package (which also includes a 
vignette).


       There are many different packages offering spline capabilities, 
but none seem to mention M-Splines.  From the Wikipedia article, it 
appears that M-splines are standard B-splines with a fit constrained to 
be non-negative.  The construction of a B-spline basis matrix is 
described in section 3.5 of Functional Data Analysis with R and Matlab 
(Ramsay, Hooker and Graves, 2009, Springer).  The fda package includes 
script files to recreate all but one of the 76 figures in the book.  The 
following code (patterned after section 3.5) produces a B-spline matrix:


tst <- create.bspline.basis()
predict(tst, seq(0, 1, .1))


       Hope this helps.
       Spencer Graves


On 9/27/2011 5:25 AM, Tigisti G wrote:
> Hi
>
> Can any one inform me an r package used to fit Cubic M-splines or r functions used to have design and penalty matrices in fitting cubic  M-splines please?
>
>
> Thanks,
> Tigist
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help@r-project.org  mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


-- 
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
web:  www.structuremonitoring.com



	[[alternative HTML version deleted]]

