smooth.construct.rn.smooth.spec: River Network Smoothers in GAMs

smooth.construct.rn.smooth.specR Documentation

River Network Smoothers in GAMs

Description

Description here.

Usage

## S3 method for class 'rn.smooth.spec'
smooth.construct(object, data, knots)

Arguments

object

a smooth specification object, usually generated by a term s(...,bs="cr",...), s(...,bs="cs",...) or s(...,bs="cc",...).

data

a list containing just the data (including any by variable) required by this term, with names corresponding to object$term (and object$by). The by variable is the last element.

knots

a list containing any knots supplied for basis setup — in same order and with same names as data. Can be NULL. See details.

Details

The constructor is not normally called directly, but is rather used internally by gam. To use for basis setup it is recommended to use smooth.construct2.

Value

An object of class "rn.smooth". In addition to the usual elements of a smooth class documented under smooth.construct, this object will contain:

xp giving the knot locations used to generate the basis.


Faskally/rns documentation built on Oct. 13, 2023, 3:17 p.m.