Skip to content

Commit

Permalink
Move some args into ...
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Feb 6, 2024
1 parent d29b70c commit 85dbf30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/bayesfactor_restricted.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ bayesfactor_restricted.stanreg <- function(posterior, hypothesis, prior = NULL,
component <- match.arg(component)

samps <- .clean_priors_and_posteriors(posterior, prior,
effects, component,
verbose = verbose
effects = effects, component = component,
parameters = parameters, verbose = verbose
)

# Get savage-dickey BFs
Expand Down
6 changes: 2 additions & 4 deletions R/utils_bayesfactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

#' @keywords internal
.clean_priors_and_posteriors.stanreg <- function(posterior, prior,
effects, component,
parameters = NULL,
verbose = TRUE,
...) {
# Get Priors
Expand All @@ -30,8 +28,8 @@
insight::format_error(prior)
}

prior <- insight::get_parameters(prior, effects = effects, component = component, ...)
posterior <- insight::get_parameters(posterior, effects = effects, component = component, ...)
prior <- insight::get_parameters(prior, ...)
posterior <- insight::get_parameters(posterior, ...)

list(
posterior = posterior,
Expand Down

0 comments on commit 85dbf30

Please sign in to comment.