https://github.com/cran/fda
Tip revision: ecd70327a6b646e8dd09634ac89ef2f4f7022ecd authored by J. O. Ramsay on 19 February 2020, 17:44:24 UTC
version 2.4.8.1
version 2.4.8.1
Tip revision: ecd7032
lambda2gcv.Rd
\name{lambda2gcv}
\alias{lambda2gcv}
\title{
Compute GCV Criterion
}
\description{
The generalized cross-validation or GCV criterion is often used to
select an appropriate smoothing parameter value, by finding the
smoothing parameter that minimizes GCV. This function locates that
value.
}
\usage{
lambda2gcv(log10lambda, argvals, y, fdParobj, wtvec=rep(1,length(argvals)))
}
\arguments{
\item{log10lambda}{
the logarithm (base 10) of the smoothing parameter
}
\item{argvals}{
a vector of argument values.
}
\item{y}{
the data to be smoothed.
}
\item{fdParobj}{
a functional parameter object defining the smooth.
}
\item{wtvec}{
a weight vector used in the smoothing.
}
}
\details{
Currently, \code{lambda2gcv}
}
\value{
1. \eqn{fdParobj[['lambda']] <- 10^log10lambda}
2. smoothlist <- smooth.basks(argvals, y, fdParobj, wtvec)
3. return(smoothlist[['gcv']])
}
\seealso{
\code{\link{smooth.basis}}
\code{\link{fdPar}}
}
% docclass is function
\keyword{smooth}