spline_values: Function computes the spline values for a smooth object...

Description Usage Arguments Value Author(s)

View source: R/spline_values.R

Description

Function computes the spline values for a smooth object computed from a GAM model produced by mgcv::gam()

Usage

1
spline_values(smooth_obj = NULL, new_data = NULL, gam_model = NULL)

Arguments

smooth_obj

An object of class “mgcv.smooth” produced by mgcv::gam().

new_data

Either a data frame of observed data or data to be predicted.

gam_model

An object of class “gam” produced by mgcv::gam()

Value

A data frame of fitted spline vales and their associated standard errors.

Author(s)

Rick Dean


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