pred_g {clustra}R 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.


[Package clustra version 0.2.1 Index]