From 77a9766ed90ea737176747ae2bd1d22d2c8dc761 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 24 Jul 2024 17:11:18 +0200 Subject: [PATCH] Prepare CRAN release (#655) * Prepare CRAN release * sundry * bump see version * news --------- Co-authored-by: Indrajeet Patil --- DESCRIPTION | 12 +++++------- NEWS.md | 3 +++ R/convert_bayesian_to_frequentist.R | 3 +-- inst/WORDLIST | 11 +---------- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 457a8477f..0fc222e4a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: bayestestR Title: Understand and Describe Bayesian Models and Posterior Distributions -Version: 0.13.2.5 +Version: 0.14.0 Authors@R: c(person(given = "Dominique", family = "Makowski", @@ -109,7 +109,7 @@ Suggests: rmarkdown, rstan, rstanarm, - see (>= 0.7.5), + see (>= 0.8.5), testthat, tweedie License: GPL-3 @@ -119,12 +119,10 @@ VignetteBuilder: knitr Encoding: UTF-8 Language: en-US -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Roxygen: list(markdown = TRUE) Config/testthat/edition: 3 Config/testthat/parallel: true Config/rcmdcheck/ignore-inconsequential-notes: true -Config/Needs/website: - rstudio/bslib, - r-lib/pkgdown, - easystats/easystatstemplate +Config/Needs/website: easystats/easystatstemplate +Config/Needs/check: stan-dev/cmdstanr diff --git a/NEWS.md b/NEWS.md index e79f24ea0..2674a02e3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -13,6 +13,9 @@ * `bayesian_as_frequentist()` now supports more model families from Bayesian models that can be successfully converted to their frequentists counterparts. +* `bayesfactor_models()` now throws an informative error when Bayes factors for + comparisons could not be calculated. + ## Bug fixes * Fixed issue in `bayesian_as_frequentist()` for *brms* models with `0 + Intercept` diff --git a/R/convert_bayesian_to_frequentist.R b/R/convert_bayesian_to_frequentist.R index b4f7a66b5..3c5452c71 100644 --- a/R/convert_bayesian_to_frequentist.R +++ b/R/convert_bayesian_to_frequentist.R @@ -63,8 +63,7 @@ convert_bayesian_as_frequentist <- function(model, data = NULL, REML = TRUE) { } else { # not all families return proper objects from "get", so we capture # some families via switch here... - model_family <- .safe(switch( - model_family$family, + model_family <- .safe(switch(model_family$family, beta = glmmTMB::beta_family(link = model_family$link), beta_binomial = glmmTMB::betabinomial(link = model_family$link), negbinomial = glmmTMB::nbinom1(link = model_family$link), diff --git a/inst/WORDLIST b/inst/WORDLIST index bbe2a7353..09e32ff64 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -1,7 +1,6 @@ ADE Altough ArXiv -BCI BCa BFs BGGM @@ -41,8 +40,8 @@ HDInterval Haaf Hinne Hirose -Imai IRR +Imai Iverson JASP JASP's @@ -60,7 +59,6 @@ Littman Liu Lodewyckx Ly -Makowski MCMCglmm MCSE MPE @@ -109,7 +107,6 @@ Ying Zheng al altough -analsyes arXiv autocorrelated avaible @@ -117,7 +114,6 @@ bayesQR bayesian bcplm behavioural -blogpost bmj bmwiernik bootsrapped @@ -127,7 +123,6 @@ centred characterisation characterises ci -columbia compte containe cplm @@ -136,7 +131,6 @@ doi driiiing eXistence easystats -edu effectsize egydq emmeans @@ -151,7 +145,6 @@ fullrank generalised ggdist ggdistribute -github grano higer https @@ -159,7 +152,6 @@ infty ing interpretability interpretable -io iteratively jmp joss @@ -200,7 +192,6 @@ splinefun ss stanfit stanreg -statmodeling strengejacke summarise summarised