Skip to content

Commit

Permalink
Merge pull request #144 from venpopov/feature/37-summary-method-for-b…
Browse files Browse the repository at this point in the history
…mmfit

Summary method for bmmfit
  • Loading branch information
venpopov authored Mar 8, 2024
2 parents 5d28b34 + 16e8d0b commit 01e6f60
Show file tree
Hide file tree
Showing 58 changed files with 1,456 additions and 511 deletions.
10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bmm
Title: Easy and Accesible Bayesian Measurement Models using 'brms'
Version: 0.4.2.9000
Version: 0.4.3.9000
Authors@R: c(
person("Vencislav", "Popov", , "[email protected]", role = c("aut", "cre", "cph")),
person("Gidon", "Frischkorn", , "[email protected]", role = c("aut", "cph")),
Expand All @@ -19,7 +19,6 @@ Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Suggests:
testthat (>= 3.0.0),
glue,
usethis,
knitr,
rmarkdown,
Expand All @@ -31,18 +30,21 @@ Suggests:
cowplot,
stringr,
remotes,
waldo
waldo,
fansi
Config/testthat/edition: 3
Imports:
magrittr,
glue,
parallel,
dplyr,
withr,
tidyr,
stats,
matrixStats,
crayon,
methods
methods,
assertthat
URL: https://github.com/venpopov/bmm, https://venpopov.github.io/bmm/
BugReports: https://github.com/venpopov/bmm/issues
Additional_repositories:
Expand Down
11 changes: 10 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

S3method("+",bmmformula)
S3method("[",bmmformula)
S3method(add_links,bmmfit)
S3method(add_links,bmmmodel)
S3method(bmf2bf,bmmmodel)
S3method(check_data,IMMspatial)
S3method(check_data,bmmmodel)
Expand All @@ -26,17 +28,22 @@ S3method(identical,bmmformula)
S3method(identical,brmsformula)
S3method(identical,default)
S3method(identical,formula)
S3method(is_nl,bmmformula)
S3method(is_nl,formula)
S3method(model_info,bmmmodel)
S3method(postprocess_brm,bmmmodel)
S3method(postprocess_brm,default)
S3method(postprocess_brm,sdmSimple)
S3method(print,bmmsummary)
S3method(print,message)
S3method(revert_postprocess_brm,default)
S3method(revert_postprocess_brm,sdmSimple)
S3method(rhs_vars,bmmformula)
S3method(rhs_vars,formula)
S3method(stancode,bmmformula)
S3method(standata,bmmformula)
S3method(summarise_model,bmmmodel)
S3method(summary,bmmfit)
S3method(update,bmmfit)
export("%>%")
export(IMMabc)
Expand Down Expand Up @@ -88,7 +95,9 @@ export(softmaxinv)
export(supported_models)
export(use_model_template)
export(wrap)
importFrom(brms,save_pars)
import(stats)
importFrom(assertthat,assert_that)
importFrom(brms,stancode)
importFrom(brms,standata)
importFrom(glue,glue)
importFrom(magrittr,"%>%")
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# bmm 0.4.0+

### New features
* add a custom summary() method for bmm models
* add a global options bmm.summary_backend to control the backend used for the summary() method (choices are "bmm" and "brms")
* deprecate get_model_prior(), get_stancode() and get_standata(). These functions will be removed in future versions of the package. Due to [recent changes](https://github.com/paul-buerkner/brms/pull/1604) in *brms* version 2.20.14, you can now use the *brms* functions `default_prior`, `stancode` and `standata` directly with *bmm* models (alternatively, their older aliases, "get_prior", "make_stancode", "make_standata").

# bmm 0.4.0
Expand Down
4 changes: 3 additions & 1 deletion R/bmm-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"_PACKAGE"

## usethis namespace: start
#' @importFrom brms save_pars
#' @importFrom glue glue
#' @import stats
#'
## usethis namespace: end
NULL
Loading

0 comments on commit 01e6f60

Please sign in to comment.