Learn R Programming

fda (version 6.2.0)

fdParcheck: Convert fd or basisfd Objects to fdPar Objects

Description

If the input is an fd object, default fdPar parameters are added to convert the object to an fdPar object. If a basisfd object, it is first converted to an fd object with a nbasis by ncurve coefficient matrix of zeros, and then converted to a fdPar object.

Usage

fdParcheck(fdParobj, ncurve=NULL)

Value

Returns a fdPar object.

Arguments

fdParobj

A basisfd, fd or a fdPar object.

ncurve

The number of curves or functions for which the basis object is to be used in their representation. If missing, an error message is displayed and computation terminated.

Details

The previous version of this function did not include the argument ncurve, and set up an fd object with a square matrix of zeros. This could cause an error in many of the functions that called it.

References

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.