Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 30, 2023
1 parent 245e459 commit 283556c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/effective_sample.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' \item Bürkner, P. C. (2017). brms: An R package for Bayesian multilevel models using Stan. Journal of Statistical Software, 80(1), 1-28
#' }
#'
#' @examples
#' @examplesIf require("rstanarm")
#' \donttest{
#' library(rstanarm)
#' model <- suppressWarnings(
Expand Down
2 changes: 2 additions & 0 deletions man/effective_sample.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test-describe_posterior.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test_that("describe_posterior", {
expect_identical(dim(rez), c(1L, 19L))
expect_identical(colnames(rez), c(
"Parameter", "Median", "MAD", "Mean", "SD", "MAP", "CI", "CI_low",
"CI_high", "p_map", "pd", "p_ROPE", "ps", "ROPE_CI", "ROPE_low",
"CI_high", "p_MAP", "pd", "p_ROPE", "ps", "ROPE_CI", "ROPE_low",
"ROPE_high", "ROPE_Percentage", "ROPE_Equivalence", "log_BF"
))

Expand Down
8 changes: 4 additions & 4 deletions vignettes/probability_of_direction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ for (i in 1:25) {
data.frame(
"sample_size" = sample_size,
"true" = true_pd,
"direct" = pd(subsample) - true_pd,
"kernel" = pd(subsample, method = "kernel") - true_pd,
"logspline" = pd(subsample, method = "logspline") - true_pd,
"KernSmooth" = pd(subsample, method = "KernSmooth") - true_pd
"direct" = as.numeric(pd(subsample)) - true_pd,
"kernel" = as.numeric(pd(subsample, method = "kernel")) - true_pd,
"logspline" = as.numeric(pd(subsample, method = "logspline")) - true_pd,
"KernSmooth" = as.numeric(pd(subsample, method = "KernSmooth")) - true_pd
)
)
}
Expand Down

0 comments on commit 283556c

Please sign in to comment.