sz basis smooths can have n factors and the terms for the smooth can be in any order #208
Closed
2 tasks done
Labels
Milestone
Because of a misreading of the {mgcv} help for the
sz
basis, {gratia}'s current handling ofsz
basis smooths assumes:(Actually I knew about 1. being wrong but I wanted to get the simplest option implemented first.)
Putting the factor first is simply annoying when fitting or comparing other models with group-level smooths as they all want the continuous covariate(s) first (think
fs
smooths, but also this is how factor-by smooths work too). And {mgcv} doesn't actually require the factor to be first.Fix problem 2. and, while doing so, allow for gratia to handle 1. also.
The text was updated successfully, but these errors were encountered: