\HeaderA{full.score}{GCV/UBRE score for use within nlm}{full.score}
\keyword{models}{full.score}
\keyword{smooth}{full.score}
\keyword{regression}{full.score}
\begin{Description}\relax
Evaluates GCV/UBRE score for a GAM, given smoothing
parameters. The routine calls \code{\LinkA{gam.fit}{gam.fit}} to fit the model, and is
usually called by \code{\LinkA{nlm}{nlm}} to optimize the smoothing parameters. 

This is basically a service routine for \code{\LinkA{gam}{gam}}, and is not usually 
called directly by users. It is only used in this context for GAMs fitted by
outer iteration (see \code{\LinkA{gam.outer}{gam.outer}}) when the the outer method is 
\code{"nlm.fd"} (see \code{\LinkA{gam.method}{gam.method}}).
\end{Description}
\begin{Usage}
\begin{verbatim}
full.score(sp,G,family,control,gamma,...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{sp}] The logs of the smoothing parameters
\item[\code{G}] a list returned by \code{\LinkA{gam.setup}{gam.setup}}
\item[\code{family}] The family object for the GAM.
\item[\code{control}] a list returned be \code{\LinkA{gam.control}{gam.control}}
\item[\code{gamma}] the degrees of freedom inflation factor (usually 1).
\item[\code{...}] other arguments, typically for passing on to \code{gam.fit}.
\end{ldescription}
\end{Arguments}
\begin{Value}
The value of the GCV/UBRE score, with attribute \code{"full.gam.object"}
which is the full object returned by \code{\LinkA{gam.fit}{gam.fit}}.
\end{Value}
\begin{Author}\relax
Simon N. Wood \email{simon.wood@r-project.org}
\end{Author}

