- data
named data frame of 1 or multiple data streams
- par
list of initial means and sds ("real", "positive") or means and concentrations ("circular", called kappa or concentration), one value per state.
For several data streams, a named list of such lists.
- type
type of each data stream, either "real" for data on the reals, "positive" for data on the positive reals or "circular" for angular data.
- k
number of basis functions for each data stream
- knots
optional vector of knots (including the boundary knots) to be used for basis construction, for several data streams a named list of such vectors.
If not provided, the knots are placed equidistantly for "real" and "circular" and using polynomial spacing for "positive".
For "real" and "positive" k - degree + 1 knots are needed, for "circular" k + 1 knots are needed.
- degree
degree of the B-spline basis functions for each data stream, defaults to cubic B-splines
- diff_order
order of differencing used for the P-Spline penalty matrix for each data stream. Defaults to second-order differences.