pred_g: Function to predict for new data based on fitted gam object.

Description Usage Arguments Value

View source: R/trajectories.R

Description

Function to predict for new data based on fitted gam object.

Usage

1
pred_g(tps, newdata)

Arguments

tps

Output structure of bam.

newdata

See clustra description of data parameter.

Value

A numeric vector of predicted values corresponding to rows of newdata. If gam object is NULL, NULL is returned instead.


clustra documentation built on Jan. 16, 2022, 9:06 a.m.