Deriv.Rd
Evaluate first derivative of GAM smooth(s), adapted from Gavin Simpson.
Deriv(mod, n = 200, eps = 1e-04, newdata, term)
the output of mgcv::gam()
number of intervals over which to evaluate each smooth. default 200.
tolerance threshold. default 1e-4.
optional; data.frame of new smooth parameters to evaluate
string smooth name, i.e. "year". must match values in mod and newdata
a vector of derivative values of length n