make_basis_mats | R Documentation |
This function creates a list of basis matrices and the corresponding
parameters. It is used in online()
to create the basis matrices
for basis smoothing.
make_basis_mats(
x,
n = length(x),
mu = 0.5,
sigma = 1,
nonc = 0,
tailw = 1,
deg = 1,
periodic = FALSE,
idx = NULL,
params = NULL
)
x |
The predictor variable |
n |
Number of knots |
mu |
Beta distribution location parameter |
sigma |
Beta distribution scale parameter |
nonc |
Beta distribution noncentrality parameter |
tailw |
Tailweight |
deg |
Degree of splines |
periodic |
Create periodic basis |
idx |
|
params |
Instead of the arguments above, a grid (data.frame or named matrix) of parameters can be passed directly. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.