Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 17, 2024
1 parent d18afa4 commit ccfa2ef
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions R/equivalence_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
#' equivalence_test(model)
#' # multiple ROPE ranges - asymmetric, symmetric, default
#' equivalence_test(model, range = list(c(10, 40), c(-5, -4), "default"))
#' # named ROPE ranges
#' equivalence_test(model, range = list(wt = c(-5, -4), `(Intercept)` = c(10, 40)))
#'
#' # plot result
#' test <- equivalence_test(model)
Expand Down
2 changes: 1 addition & 1 deletion R/p_significance.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#' p_significance(model)
#' # multiple thresholds - asymmetric, symmetric, default
#' p_significance(model, threshold = list(c(-10, 5), 0.2, "default"))
#' # names thresholds
#' # named thresholds
#' p_significance(model, threshold = list(wt = 0.2, `(Intercept)` = c(-10, 5)))
#' }
#' @export
Expand Down
3 changes: 3 additions & 0 deletions R/rope.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
#' # multiple ROPE ranges
#' rope(model, range = list(c(-10, 5), c(-0.2, 0.2), "default"))
#'
#' # named ROPE ranges
#' rope(model, range = list(gear = c(-3, 2), wt = c(-0.2, 0.2)))
#'
#' library(emmeans)
#' rope(emtrends(model, ~1, "wt"), ci = c(0.90, 0.95))
#'
Expand Down
2 changes: 2 additions & 0 deletions man/equivalence_test.Rd

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

2 changes: 1 addition & 1 deletion man/p_significance.Rd

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

3 changes: 3 additions & 0 deletions man/rope.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-rope.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test_that("rope", {
# list range
expect_equal(
rope(m, range = list(c(-1, 0.1), "default", "default", c(-1, 1), c(-1.5, -1)))$ROPE_Percentage,
c(0.15823, 1, 0, 0.3903, 0.38186)
c(0.15823, 1, 0, 0.3903, 0.38186),
tolerance = 1e-3
)

Expand Down

0 comments on commit ccfa2ef

Please sign in to comment.