Description Usage Arguments Value Author(s) References See Also
Function used to set up univariate or bivariate smooth terms
based on P-splines, for use within a call to smnet
.
1 |
... |
one or more variables for creating P-spline smooths. |
k |
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. |
cyclic |
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
Alastair Rushworth
Modified version of s
originally from package mgcv
, Simon Wood (2014).
smnet
, plot.smnet
, predict.smnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.