Learn R Programming

gamsel (version 1.8-5)

basis.gen: Generate basis

Description

Generate basis

Usage

basis.gen(x, df = 6, thresh = 0.01, degree = 8, parms = NULL, ...)

Value

the basis

Arguments

x

A vector of values for basis.gen, or a matrix for pseudo.bases

df

The degrees of freedom of the smoothing spline.

thresh

If the next eigenvector improves the approximation by less than threshold, a truncated bases is returned. For pseudo.bases this can be a single value or a vector of values, which are recycled sequentially for each column of x

degree

The nominal number of basis elements. The basis returned has no more than degree columns. For pseudo.bases this can be a single value or a vector of values, which are recycled sequentially for each column of x

parms

A parameter set. If included in the call, these are used to define the basis. This is used for prediction.

...

other arguments