« * K @gsimpson.bsky.social

Gavin Simpson @gsimpson.bsky.social

2026-11-23 10:51 UTC

Check ordinal and nominal GAMs with surrogate residuals. For this ordinal fit, qq_plot(type = "surrogate") compares the residuals with logistic quantiles. For a nominal fit, gratia can draw a separate diagnostic panel for each category. #RStats

2 pictures (not shown on this phone): library("gratia") library("mgcv") d <- data_sim("additive", n = 400, n_cat = 4, dist = "ordered categorical", seed = 42…

A reply in a thread.

0 likes, 0 reposts, 1 replies

3 Next post4 More from @gsimpson.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup