Skip to content

Commit

Permalink
code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 3, 2024
1 parent ac7008b commit b1355db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/equivalence_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,15 @@ equivalence_test.ggeffects <- function(x,
# ci(out, ci = ci)
# ci_range
# -------------------------------------------------------------------------
# furthermore, using this approximation, following three approaches yield
# similar results:
# -------------------------------------------------------------------------
# m <- lm(mpg ~ gear + wt + cyl + hp, data = mtcars)
# m2 <- brm(mpg ~ gear + wt + cyl + hp, data = mtcars)
# p_significance(m, threshold = 0.6) # the default for "mpg" as response
# p_significance(m2)
# p_significance(simulate_model(m))
# -------------------------------------------------------------------------
sd = diff_ci / ((stats::qnorm((1 + ci) / 2) * (stats::qnorm(0.999975) / 2)))
)
}
Expand Down

0 comments on commit b1355db

Please sign in to comment.