gam_interp {anipaths}R Documentation

GAM interpolation using mgcv:gam().

Description

GAM interpolation using mgcv:gam().

Usage

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


[Package anipaths version 0.10.1 Index]