Learn R Programming

clustra (version 0.2.1)

pred_g: 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)

Value

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

Arguments

tps

Output structure of bam.

newdata

See clustra description of data parameter.