Predict.matrix.rn.smooth: River Network Smooths

Predict.matrix.rn.smoothR Documentation

River Network Smooths

Description

For data observed over river networks, a simple river network smoother can be appropriate. These functions provide such a smoother class for mgcv.

Usage

## S3 method for class 'rn.smooth'
Predict.matrix(object, data)

Arguments

object

For the smooth.construct method a smooth specification object, usually generated by a term s(x,...,bs="rn", xt=list(polys=foo)). x is a factor variable giving labels for geographic districts, and the xt argument is obligatory: see details. For the Predict.Matrix method an object of class "rn.smooth" produced by the smooth.construct method.

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.

Value

An object of class "rn.smooth" or a matrix mapping the coefficients of the river network smooth to the predictions for the nodes listed in data.


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