For a functional regression model, a cross-validated error sum of
squares is computed. For a functional dependent variable this is the
sum of integrated squared errors. For a scalar response, this function
has been superseded by the OCV and gcv elements returned by
fRegress
. This function aids the choice of smoothing parameters
in this model using the cross-validated error sum of squares
criterion.
#fRegress.CV(y, xfdlist, betalist, wt=NULL, CVobs=1:N,
# returnMatrix=FALSE, ...)#NOTE: The following is required by CRAN rules that
# function names like "as.numeric" must follow the documentation
# standards for S3 generics, even when they are not.
# Please ignore the following line:
# S3 method for CV
fRegress(y, xfdlist, betalist, wt=NULL, CVobs=1:N,
returnMatrix=FALSE, ...)
A list containing
The sum of squared errors, or integrated squared errors
Either a vector or a functional data object giving the cross-validated errors
the dependent variable object.
a list whose members are functional parameter objects specifying functional independent variables. Some of these may also be vectors specifying scalar independent variables.
a list containing functional parameter objects specifying the regression functions and their level of smoothing.
weights for weighted least squares. Defaults to all 1's.
Indices of observations to be deleted. Defaults to 1:N.
logical: If TRUE, a two-dimensional is returned using a special class from the Matrix package.
optional arguments not used by fRegress.CV
but needed for
superficial compatibility with fRegress
methods.
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.
fRegress
,
fRegress.stderr
#. See the analyses of the Canadian daily weather data.
Run the code above in your browser using DataLab