View source: R/B_splines_est.R
splines_df | R Documentation |
This helper function constructs a data frame with the following structure:
One column for the x-values
m + p columns values of squared basis functions evaluated at the corresponding x.
splines_df(x, p, m, taus)
x |
A vector of lags. |
p |
The order of the splines. |
m |
The number of nonboundary knots. |
taus |
Vector of |
A data frame of the above structure.
taus <- get_taus(3, 2)
splines_df(seq(0, 2, by=0.25), 3, 2, taus)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.