View source: R/b-spline-covariate.R
b_spline_covariate | R Documentation |
Calculate the matrix of covariates for the b-spline
b_spline_covariate( x, knots, basis = dt:::b_spline_basic_radial_basis, label = "spline", ... )
x |
values to calculate spline values for |
knots |
knot locations |
basis |
basis function to use for calculating the spline values |
label |
1-length character vector used to prefix the resulting set of column names |
... |
further arguments to the basis function |
a matrix representing spline value per x value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.