Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare CRAN release #655

Merged
merged 6 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -109,7 +109,7 @@ Suggests:
rmarkdown,
rstan,
rstanarm,
see (>= 0.7.5),
see (>= 0.8.5),
testthat,
tweedie
License: GPL-3
Expand All @@ -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
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
3 changes: 1 addition & 2 deletions R/convert_bayesian_to_frequentist.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
} 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),
Expand Down Expand Up @@ -102,7 +101,7 @@

# internal

.convert_bayesian_as_frequentist <- function(info, formula, data, family, REML = TRUE) {

Check warning on line 104 in R/convert_bayesian_to_frequentist.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/convert_bayesian_to_frequentist.R,line=104,col=1,[cyclocomp_linter] Reduce the cyclomatic complexity of this function from 46 to at most 40.
# TODO: Check for
# nonlinear formulas,
# correlation structures,
Expand Down
11 changes: 1 addition & 10 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ADE
Altough
ArXiv
BCI
BCa
BFs
BGGM
Expand Down Expand Up @@ -41,8 +40,8 @@ HDInterval
Haaf
Hinne
Hirose
Imai
IRR
Imai
Iverson
JASP
JASP's
Expand All @@ -60,7 +59,6 @@ Littman
Liu
Lodewyckx
Ly
Makowski
MCMCglmm
MCSE
MPE
Expand Down Expand Up @@ -109,15 +107,13 @@ Ying
Zheng
al
altough
analsyes
arXiv
autocorrelated
avaible
bayesQR
bayesian
bcplm
behavioural
blogpost
bmj
bmwiernik
bootsrapped
Expand All @@ -127,7 +123,6 @@ centred
characterisation
characterises
ci
columbia
compte
containe
cplm
Expand All @@ -136,7 +131,6 @@ doi
driiiing
eXistence
easystats
edu
effectsize
egydq
emmeans
Expand All @@ -151,15 +145,13 @@ fullrank
generalised
ggdist
ggdistribute
github
grano
higer
https
infty
ing
interpretability
interpretable
io
iteratively
jmp
joss
Expand Down Expand Up @@ -200,7 +192,6 @@ splinefun
ss
stanfit
stanreg
statmodeling
strengejacke
summarise
summarised
Expand Down
Loading