[R] Smoothing spline with smoothing parameters selected by "generalized maximum likelihood"
Simon Wood
s.wood at bath.ac.uk
Mon Jan 2 17:04:10 CET 2012
something like
library(mgcv)
gam(y~s(x,k=50),method="REML")
is one option for spline smoothing y w.r.t. x and choosing the smoothing
parameter by GML (GML and REML do the same thing).
On 18/12/11 12:26, ali_protocol wrote:
> Hi there,
>
> How may I smooth spline two vectors with the smoothing parameter selected
> by generalized maximum likelihood (GML) .?
>
> Thanks a lot.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Smoothing-spline-with-smoothing-parameters-selected-by-generalized-maximum-likelihood-tp4210679p4210679.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
--
Simon Wood, Mathematical Science, University of Bath BA2 7AY UK
+44 (0)1225 386603 http://people.bath.ac.uk/sw283
More information about the R-help
mailing list