Changelog
Source:NEWS.md
tidygam 1.0.0
SOFT-BREAKING
Now
predict_gam()
uses thelpmatrix
predictions which means that when excluding terms the user will have to set a value for the excluded variable.This is especially relevant when excluding (random) factor smooths: the user should pick a value for the random variable in the smooth to avoid the same predictions being output for all levels in the random variable (see the
Get started
vignette for examples).Note that older code will still work but will produce duplicated predictions.
Changed
- Now
predict_gam()
uses thelpmatrix
predictions. It is now possible to exclude any terms, smooth or parametric.
tidygam 0.2.0
CRAN release: 2023-05-09
Added
get_difference()
returns difference between two smooths.plot.tidygam.diff
method to plot difference smooth.Data
gest
andstruct
.separate
andsep_by
arguments inpredict_gam()
allow the user to separate variables in the model that were created withinteraction()
.Vignette
get-started.Rmd
.
Fixed
Error when predicting bivariate smooths (
s/te/ti()
,fs/re
basis functions) where only the first variable was returned internally.Error when plotting difference smooth with no significant difference (closes #5).
Error where
get_difference()
did not work when excluding random smooths (closes #8).