b_spline_covariate: Calculate the matrix of covariates for the b-spline

View source: R/b-spline-covariate.R

b_spline_covariateR Documentation

Calculate the matrix of covariates for the b-spline

Description

Calculate the matrix of covariates for the b-spline

Usage

b_spline_covariate(
  x,
  knots,
  basis = dt:::b_spline_basic_radial_basis,
  label = "spline",
  ...
)

Arguments

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

Value

a matrix representing spline value per x value


sakrejda/dt documentation built on Sept. 24, 2022, 3:03 a.m.