[R] NATURAL Smoothing B-splines
Spencer Graves
spencer.graves at effectivedefense.org
Sun Aug 2 17:21:58 CEST 2015
> library(sos)
> ns. <- findFn('natural spline')
found 191 matches; retrieving 10 pages
2 3 4 5 6 7 8 9 10
Downloaded 113 links in 70 packages.
> ns2 <- findFn('natural splines')
found 145 matches; retrieving 8 pages
2 3 4 5 6 7 8
Downloaded 70 links in 42 packages.
> ns2. <- ns.|ns2
> ns2.
# This displayed a table of 137 different help pages sorted to place the
package with the most matches first.
> findFn2xls(ns2.) # writes a file with a name like "nls2..xls" to the
working directory [getwd()]
# with a sheet giving a summary by package.
Hope this helps.
Spencer
On 8/2/2015 10:10 AM, Marc Lamblin wrote:
> Hi all,
>
> I'm an engineering student from Politecnico di Milano.
> I want to perform Smoothing using Smoothing B-splines on syntethic
> data. The splines must be NATURAL (at the edges the second and third
> order derivates are zero).
> How can I impose this constraint?
> I have searched in R documentation. For Smoothing I use the fda
> package. From the description of the function smooth.basis() it seems
> that it is not possible to use natural B-splines. I have found only
> the function ns() from splines package but in this way you can obtain
> only the basis and I have seen that this function is used in models
> expressed in symbolic notation.
>
> Thanks in advance!!
>
> mggl
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
More information about the R-help
mailing list