View source: R/generalFunctions.R
Builder for B-splines basis and penalty matrices typically used in DoubleGam and DoubleRobGam
1 |
x |
data vector |
nknots |
number of knots used in building the B-splines |
p |
polynomial degree of the basis |
center |
logical indicator on whether the design matrix should be centered (and it should be the case when more than one covariate enter the model) |
sm.p |
smoothing parameter used in the penalty matrix build |
order |
penalty matrix order |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.