Rev 2249 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{initial.sp}\alias{initial.sp}%- Also NEED an `\alias' for EACH other topic documented here.\title{ Starting values for multiple smoothing parameter estimation}\description{ Finds initial smoothing parameter guesses for multiple smoothingparameter estimation. The idea is to find values such that the estimateddegrees of freedom per penalized parameter should be well away from 0 and 1for each penalized parameter, thus ensuring that the values are in a region ofparameter space where the smoothing parameter estimation criterion is varyingsubstantially with smoothing parameter value.} %- end description\usage{initial.sp(X,S,off,expensive=FALSE,XX=FALSE)}%- maybe also `usage' for other objects documented here.\arguments{\item{X}{is the model matrix.}\item{S}{ is a list of of penalty matrices. \code{S[[i]]} is the ith penalty matrix, but notethat it is not stored as a full matrix, but rather as the smallest square matrix including allthe non-zero elements of the penalty matrix. Element 1,1 of \code{S[[i]]} occupieselement \code{off[i]}, \code{off[i]} of the ith penalty matrix. Each \code{S[[i]]} must bepositive semi-definite. }\item{off}{is an array indicating the first parameter in the parameter vector that ispenalized by the penalty involving \code{S[[i]]}.}\item{expensive}{if \code{TRUE} then the overall amount of smoothing isadjusted so that the average degrees of freedom per penalized parameter isexactly 0.5: this is numerically costly. }\item{XX}{if \code{TRUE} then \code{X} contains \eqn{X^TX}{X'X}, rather than \eqn{X}{X}.}}\details{ Basically uses a crude approximation to the estimated degrees offreedom per model coefficient, to try and find smoothing parameters whichbound these e.d.f.'s away from 0 and 1.Usually only called by \code{\link{magic}} and \code{\link{gam}}.}\value{ An array of initial smoothing parameter estimates.}\author{ Simon N. Wood \email{simon.wood@r-project.org}}\seealso{\code{\link{magic}},\code{\link{gam.outer}},\code{\link{gam}},}\keyword{models} \keyword{smooth} \keyword{regression}%-- one or more ..