basis.bsplines: A function to decompose multivariate data on a B-spline basis

Description Usage Arguments Details Value See Also Examples

Description

The basis.bsplines function decomposes a multivariate data set on a B-spline basis defined by its knots and mdegree parameters.

Usage

1
basis.bsplines(simuls, basis.args = list(knots = 5, mdegree = 3))

Arguments

simuls

a data.frame of size N x T, typically a set of N simulation outputs of length T.

basis.args

a list of arguments for the B-spline decomposition. The knots argument is the number of knots or the vector of knot positions. The mdegree argument is the polynomial degree. For the optional x.coord argument, see the Details section.

Details

The optional x.coord element of the list in basis.args can be used to specify the support of the B-spline decomposition, if different from 1:T. It must be a vector of length T.

Value

H

a data.frame of size N x d, where d is the dimension of the B-spline decomposition. It contains the coefficients of the decomposition for each row of the simuls data.frame.

L

a matrix of size T x d. It contains the vectors of the B-spline basis.

call.info

list with the element reduction="b-splines"

See Also

bspline, sesBsplinesNORM

Examples

1
2
3
data(biomasseY)

res <- basis.bsplines(biomasseY,basis.args=list(knots=7,mdegree=3))

multisensi documentation built on May 2, 2019, 2:14 p.m.