arrangeTPRS: Rearrange TPRS basis

View source: R/functions_tprs.R

arrangeTPRSR Documentation

Rearrange TPRS basis

Description

Rearrange the columns of the TPRS basis

Usage

arrangeTPRS(tprs, intercept = FALSE)

Arguments

tprs

Matrix of TPRS basis values

intercept

Logical indicator of whether or not to remove the intercept column

Details

This function takes TPRS basis values, as created by the mgcv package, and rearranges them. The last two columns are moved to the left of the matrix and the third-from last column, which corresponds to the intercept, is optionally removed.

See Also

computeTPRS


jpkeller/spconf documentation built on March 11, 2024, 9:32 a.m.