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

107 estimation of bayes factors for models including random effects requires brmssave pars #110

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
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ export(rad2deg)
export(rmixture2p)
export(rmixture3p)
export(rsdm)
export(save_pars)
export(sdmSimple)
export(set_default_prior)
export(softmax)
export(softmaxinv)
export(supported_models)
export(use_model_template)
export(wrap)
importFrom(brms,save_pars)
importFrom(magrittr,"%>%")
1 change: 1 addition & 0 deletions R/bmm-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"_PACKAGE"

## usethis namespace: start
#' @importFrom brms save_pars
## usethis namespace: end
NULL
9 changes: 8 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,11 @@ order_data_query <- function(model, data, formula) {
data
}


#' @inherit brms::save_pars title params return
#' @description Thin wrapper around [brms::save_pars()]. When calling
#' [fit_model] with additional information to save parameters you can use this
#' function to pass information about saving parameter draws to `brms` without
#' having to load `brms`. Alternatively, you can also load `brms` and call
#' `save_pars`. For details see ?brms::save_pars.
#' @export
save_pars <- brms::save_pars
43 changes: 43 additions & 0 deletions man/save_pars.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.