fda (version 5.1.9)

smooth.fdPar: Smooth a functional data object using a directly specified roughness penalty

Description

Smooth data already converted to a functional data object, fdobj, using directly specified criteria.

Usage

smooth.fdPar(fdobj, Lfdobj=NULL, lambda=1e-4,
             estimate=TRUE, penmat=NULL)

Arguments

fdobj

a functional data object to be smoothed.

Lfdobj

either a nonnegative integer or a linear differential operator object.

If NULL, Lfdobj depends on fdobj[['basis']][['type']]:

  • bspline Lfdobj <- int2Lfd(max(0, norder-2)), where norder = norder(fdobj).

  • fourier Lfdobj = a harmonic acceleration operator:

    Lfdobj <- vec2Lfd(c(0,(2*pi/diff(rng))^2,0), rng)

    where rng = fdobj[['basis']][['rangeval']].

  • anything elseLfdobj <- int2Lfd(0)

lambda

a nonnegative real number specifying the amount of smoothing to be applied to the estimated functional parameter.

estimate

a logical value: if TRUE, the functional parameter is estimated, otherwise, it is held fixed.

penmat

a roughness penalty matrix. Including this can eliminate the need to compute this matrix over and over again in some types of calculations.

Value

a functional data object.

Details

1. fdPar

2. smooth.fd

References

Ramsay, James O., and Silverman, Bernard W. (2006), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

smooth.fd, fdPar, smooth.basis, smooth.pos, smooth.morph

Examples

Run this code
# NOT RUN {
	#  see smooth.basis
# }

Run the code above in your browser using DataCamp Workspace