Genbasis: Basis matrix generation

Description Usage Arguments Details Value

Description

generate the basis matrix for polynomial spline, fourier, and orthogonalsplinebasis B-splines.

Usage

1
Genbasis(sseq, df, degree, type = c("bs", "fourier", "OBasis"))

Arguments

sseq

the predictor variable.

df

degree of freedom.

degree

degree of piecewise polynomial - default is 3. Used in bs and OBasis.

type

type of basis

Details

For type bs and OBasis, intercept is set to TRUE, minimum value for df is 4. For type fourier, df should be a even number. If not, df is automatically set to df - 1.

Value

basis matrix of size length(sseq) by df


Zhe-Research/compReg documentation built on May 28, 2019, 8:38 a.m.