Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
[skip]
  • Loading branch information
mattansb committed Dec 8, 2024
1 parent 242e422 commit 5740303
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/interpret_rope.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#' Interpretation of
#'
#' @param rope Value or vector of percentages in ROPE.
#' @param ci The Credible Interval (CI) probability, corresponding to the proportion of HDI, that was used. Can be `1` in the case of "full ROPE".
#' @param ci The Credible Interval (CI) probability, corresponding to the
#' proportion of HDI, that was used. Can be `1` in the case of "full ROPE".
#' @param rules A character string (see details) or a custom set of [rules()].
#'
#' @section Rules:
Expand Down
3 changes: 2 additions & 1 deletion man/interpret_rope.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat/test-convert_between.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ test_that("exact OR to d", {

expect_equal(cor(oddsratio_to_d(OR), d), 1, tolerance = 0.0001)
expect_equal(oddsratio_to_d(1), 0, tolerance = 0.0001)
expect_equal(oddsratio_to_d(OR, p0), d)
expect_equal(oddsratio_to_d(OR, p0), d, tolerance = 0.0001)

expect_equal(cor(oddsratio_to_r(OR), d_to_r(d)), 1, tolerance = 0.0002)
expect_equal(oddsratio_to_r(1), 0, tolerance = 0.0001)
expect_equal(oddsratio_to_r(OR, p0), d_to_r(d))
expect_equal(oddsratio_to_r(OR, p0), d_to_r(d), tolerance = 0.0001)


# From Chen et al 2010
Expand Down

0 comments on commit 5740303

Please sign in to comment.