b_spline_covariate_repr: Represent the matrix of covariates for the b-spline

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

b_spline_covariate_reprR Documentation

Represent the matrix of covariates for the b-spline

Description

Represent the matrix of covariates for the b-spline

Usage

b_spline_covariate_repr(
  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 representation of the spline value per x value


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