« * K @gsimpson.bsky.social

Gavin Simpson @gsimpson.bsky.social

2026-11-23 10:51 UTC

Where do two fitted surfaces differ? compare_smooths() puts them on the same grid. Draw them on a shared colour scale, then plot one smooth minus the other. Here the larger spline basis captures peaks and dips that the smaller basis smooths over. #RStats

3 pictures (not shown on this phone): library("gratia") library("mgcv") set.seed(7) d <- data.frame(x = runif(450), z = runif(450)) d$y <- sin(3 * pi * d$x) …

A reply in a thread.

1 likes, 0 reposts, 1 replies

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