@gsimpson.bsky.socialGavin Simpson @gsimpson.bsky.social
2026-11-23 10:51 UTC
Predicting counts for a new site? With marginalise = TRUE, the solid curve averages over the fitted distribution of site effects. The dashed curve sets the site effect to zero. random_effect_samples() can also draw new intercepts, slopes and curves. #RStats
2 pictures (not shown on this phone): library("gratia") library("mgcv") library("ggplot2") set.seed(2) d <- expand.grid(x = seq(0, 1, length.out = 15), site …
A reply in a thread.
1 likes, 0 reposts, 1 replies
3 Next post4 More from @gsimpson.bsky.socialBackBluesky home