evaluate_smooth: Evaluate a smooth

Description Usage Arguments Value Author(s)

View source: R/evaluate_smooth.R

Description

Evaluate a smooth term and return its corresponding spline values

Usage

1
2
3
4
5
6
evaluate_smooth(
  gam_model = NULL,
  smooth_term = NULL,
  n_points = 100,
  new_data = NULL
)

Arguments

gam_model

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

smooth_term

A string that identifies the smooth to be evaluated.

n_points

An integer that sets the number of points to be evaluated.

newdata

A vector or data frame of points at which to evaluate the points.

Value

A data frame of the evaluated smooth spline values

Author(s)

Rick Dean


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