Function used to set up univariate or bivariate smooth terms
based on P-splines, for use within a call to smnet
.
m(..., k = -1, cyclic = F)
one or more variables for creating P-spline smooths.
integer defining the number of uniformly spaced B-spline basis functions for the smooth, default is 10. For 2d (and higher) smooths, this is the marginal basis size.
logical vector indicating whether the smooth should be cyclic. Based on the harmonic smoother of Eiler and Marx (2004)
List object with components
term
: character vector of the names of the variables involved in the smooth to be set up
bs.dim
: number of B-spline basis functions to be used in the smooth
Modified version of s
originally from package mgcv
, Simon Wood (2014).