Re:The Truth About Linear Regression (2015)
by SubiculumCode on Tuesday July 30, 2024 @11:35PM
(#41116198)
Hey cool. I'll take a closer look then. Thanks! I assume that there are mixed model variants out there too.
You still can't do arbitrary high-order interactions like you can get out of tree-based methods (xgboost & friends) but that's a small price to pay for valid confidence intervals and p-values. For example, the model above will give you a p-value for the ti() term, which you can use as formal statistical evidence to say -- at what level of confidence -- a spatiotemporal trend exists.
This Rmarkdown file (not rendered sadly) shows how to do this and other tricks https://github.com/eric-pedersen/mgcv-esa-workshop/blob/mast...