bs_diff.Rd
parameters follow bs
bs_diff(
x,
df = NULL,
knots = NULL,
degree = 3,
intercept = TRUE,
Boundary.knots = range(x),
differences = 1,
periodic = FALSE,
center = TRUE
)
list of data_model variables including:
state a list of parameters associated with the data_model. Here, only the matrix Eta
posteriorSample_params a list of parameter names to record posterior samples of
posteriorMean_params a list of parameters to record the posterior mean, but not save individual posterior samples
uses code from bs, but optionally transforms the basis into a difference between spline parameters.
Also, optionally centers the spline so that the spline average is zero.
following code from https://github.com/SurajGupta/r-source/blob/master/src/library/splines/R/splines.R