Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@gsimpson.bsky.socialNov 23, 2026, 10:51 AM

📣 gratia 0.12.1 is out! 📦 This is a major update for GAMs in R, with broader model support and new ways to visualise smooths, make predictions and check fits.

https://cran.r-project.org/package=gratia
#RStats #mgcv #statistics

library("gratia")
library("mgcv")

# Gu and Wahba's additive example with Gaussian noise
d <- data_sim("additive", n = 400, dist = "normal",
  scale = 2, seed = 42)

fit <- gam(y ~ s(x0) + s(x1) + s(x2) + s(x3),
  data = d, family = gaussian(), method = "REML")

draw(fit, scales = "fixed", ncol = 2)Four fitted GAM smooths on the same vertical scale, each with a grey uncertainty band. The x0 effect forms a shallow arch. The x1 effect rises and steepens. The x2 effect peaks near 0.25 before falling, with a smaller bump near 0.6. The x3 effect stays close to zero.