generate_smooth_data: Generate data over the range of variable used in smooths

Description Usage Arguments Author(s)

View source: R/generate_smooth_data.R

Description

For a smooth object of class mgcv.smooth from a GAM model, generate new data over the range of the variables involved in a smooth.

Usage

1
generate_smooth_data(smooth_obj = NULL, n_points = 100, gam_model = NULL)

Arguments

smooth_obj

A smooth object of class mgcv.smooth for which new data is required.

n_points

An integer that sets the number of point values to be generated.

gam_model

A gam object model produced after fitting data from the mgcv::gam() function.

Author(s)

Rick Dean


deandevl/RgamPkg documentation built on Sept. 17, 2021, 2:02 p.m.