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

View source: R/trajectories.R

pred_gR Documentation

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

Description

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

Usage

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 May 29, 2024, 4:25 a.m.