| alphaN_power_plot | R Documentation |
Draws, for each requested effect size, the power of the two-sided
single-coefficient test as a function of the sample size, where every
calibration method is evaluated at its own alpha level for the given
Bayes factor target. A fixed reference level (default 0.05) is drawn as
a dashed curve. This is the design-time companion of alphaN_plot():
one figure shows what each calibration costs in power. Colors follow the
colorblind-safe Okabe-Ito palette; the effect-size and moment curves use
the same log-spaced spline interpolation as alphaN_plot().
alphaN_power_plot(
d = c(0.1, 0.5),
BF = 3,
max = 10000,
methods = c("JAB", "min", "robust", "balanced"),
de = 0.5,
ref = 0.05
)
d |
Standardized effect sizes to draw, one panel per element, on
the scale of |
BF |
Target Bayes factor for the calibration. Defaults to 3. |
max |
The maximum number of sample size. Defaults to 10,000. |
methods |
Character vector with the methods to draw, any subset of c("JAB", "min", "robust", "balanced", "ES", "moment"). Defaults to the four prior-fraction methods, matching the behavior of earlier package versions. |
de |
The prespecified (targeted) effect size in standardized units:
Cohen's d for |
ref |
A fixed significance level drawn as a dashed reference curve, or NULL to omit it. Defaults to 0.05. |
Prints a plot.
alphaN_power(), alphaN_plot()
# The power cost of evidence calibration for a small and a medium effect
alphaN_power_plot(d = c(0.1, 0.5), BF = 3,
methods = c("JAB", "balanced", "moment"), max = 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.