Learn R Programming

GPFDA (version 2.2)

betaPar: Create an fdPar object

Description

Easy setting up for create a fdPar object.

Usage

betaPar(betaList=NULL)

Arguments

betaList

A list contain following items: `rtime': range of time, default to be 0 and 1; `nbasis': number of basis functions used in smoothing, default to be less or equal to 19; norder: the order of the functional curves default to be 6;`bSpline': logical, if True, b-spline is used, otherwise use Fourier basis, default to be True; `Pen': default to be c(0,0);`lambda':default to be 1e4;`bivar':logical, if True, the bivariate basis will be calculated, otherwise normal basis, default to be False; `lambdas':the smoothing parameter for the penalty of the additional basis, default to be 1e4.

Value

betaPar

An fdPar object

Details

All items listed above have default values. If any item is required to change, add that item into the list, otherwise leave it as NULL. For example,if one only wants to change the number of basis functions, do: betaParlist(nbasis=11)

References

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

See Also

cov.linear,xixj_sta

Examples

Run this code
# NOT RUN {
library(GPFDA)
beta1=betaPar()
beta2=betaPar(list(nbasis=7,lambda=0.01))
# }

Run the code above in your browser using DataLab