m: Specify Smooth Terms in Formulae

Description Usage Arguments Value Author(s) References See Also

Description

Function used to set up univariate or bivariate smooth terms based on P-splines, for use within a call to smnet.

Usage

1
m(..., k = -1, cyclic = F)

Arguments

...

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)

Value

List object with components

Author(s)

Alastair Rushworth

References

Modified version of s originally from package mgcv, Simon Wood (2014).

See Also

smnet, plot.smnet, predict.smnet


alastairrushworth/smnet documentation built on Nov. 13, 2020, 10:27 p.m.