project.basis {fda}R Documentation

Approximate Functional Data Using a Basis

Description

A vector or matrix of discrete data is projected into the space spanned by the values of a set of basis functions. This amounts to a least squares regression of the data on to the values of the basis functions. A small penalty can be applied to deal with stiautions in which the number of basis functions exceeds the number of basis points. This function is used with function data2fd, and is not normally used directly in a functional data analysis.

Usage

project.basis(y, argvals, basisfd, penalize=FALSE)

Arguments

y A vector or matrix of discrete data.
argvals The argument values correspond to the values in y.
basisfd A basis object.
penalize A logical variable. If TRUE, a small roughness penalty is applied to ensure that the linear equations defining the least squares solution are linearly independent or nonsingular.

Details

Value

The matrix of coefficients defining the least squares approximation. This matrix has as many rows are there are basis functions, as many columns as there are curves, and if the data are multivariate, as many layers as there are functions.

Note

Author(s)

References

See Also

data2fd

Examples






[Package fda version 1.0 Index]