https://github.com/cran/fda
Raw File
Tip revision: 877347f65135b34c238ac4f27de992aa38d15347 authored by J. O. Ramsay on 03 November 2009, 00:00:00 UTC
version 2.4.0
Tip revision: 877347f
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}
back to top