gam_interp: GAM interpolation using 'mgcv:gam()'.

Description Usage Arguments Value

View source: R/gam_interpolation.R

Description

GAM interpolation using mgcv:gam().

Usage

1
gam_interp(formula = NULL, y, time, pred_times, se.fit = T, s_args = NULL)

Arguments

formula

optionally specify formula for mgcv::gam() using y as response and time as predictor.

y

observations

time

times for observations

pred_times

prediction times

se.fit

logical default is TRUE; should standard pointwise errors be computed for interpolation

s_args

Arguments to mgcv::s() can be passed using a named list/vector.

Value

interpolated values


anipaths documentation built on May 17, 2021, 5:07 p.m.