From cb9d62db6f46cd403d2dfa3ff6c85985a7e6cbc1 Mon Sep 17 00:00:00 2001 From: Gavin Simpson Date: Mon, 16 Oct 2023 15:53:20 +0200 Subject: [PATCH] better notify on some of the major changes and new features; bump version --- DESCRIPTION | 4 ++-- NEWS.md | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index b3c3b5b25..3c3c6cea2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: gratia -Version: 0.8.1.41 -Date: 2023-10-13 +Version: 0.8.1.42 +Date: 2023-10-16 Title: Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv' Authors@R: c(person(given = "Gavin L.", family = "Simpson", email = "ucfagls@gmail.com", diff --git a/NEWS.md b/NEWS.md index bde5b9b25..1f1a59137 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# gratia 0.8.1.41 +# gratia 0.8.1.42 ## User visible changes @@ -40,7 +40,6 @@ * `fitted_values()` now has some level of support for location, scale, shape families. Suppoerted families are `mgcv::gaulss()`, `mgcv::gumbls()`, `mgcv::gevlss()`, `mgcv::gumbls()`, `mgcv::shash()`, and `mgcv::ziplss()`. - * *gratia* now requires *dplyr* versions >= 1.1.0 and *tidyselect* >= 1.2.0. @@ -168,9 +167,15 @@ * New function `null_deviance()` that extracts the null deviance of a fitted model. -* `draw()`, `smooth_estimates()`, & `smooth_samples()` now all work for models - fitted with `scam::scam()`. Currently support extends only to univariate - smooths. +* `draw()`, `smooth_estimates()`, `fitted_values()`, `data_slice()`, and + `smooth_samples()` now all work for models fitted with `scam::scam()`. + Where it matters, current support extends only to univariate smooths. + +* `post_draws()` is a new low-level function for generating posterior draws + from fitted model coefficients. `post_daws()` is an S3 generic function so is + extensible by users. Currently provides a simple interface to a simple + Gaussian approximation sampler (`gaussian_draws()`) and the simple Metropolis + Hasting sample (`mh_draws()`) available via `mgcv::gam.mh()`. ## Bug fixes