| grim_binomial_power | R Documentation |
grim_binomial_power() computes the statistical power of
grim_binomial() for given parameters, to judge whether the test is
informative for a data set before interpreting its p-value. Like the test
itself, it has not been tested extensively.
grim_binomial_power(
p0,
p1,
k = NULL,
alternative = c("greater", "less", "two.sided"),
alpha = 0.05
)
p0 |
Numeric. Null probability of GRIM consistency per value set, i.e.,
|
p1 |
Numeric (length 1). Probability of consistency under the alternative, shared by all value sets. |
k |
Numeric (length 1). Number of value sets. Required if |
alternative |
String (length 1). One of |
alpha |
Numeric (length 1). Significance level. Default is |
Numeric (length 1). The probability of rejecting the null hypothesis when the alternative is true.
# 10 means with a null probability of 0.5 each, 90% truly consistent:
grim_binomial_power(p0 = 0.50, p1 = 0.9, k = 10)
# The same with 30 means:
grim_binomial_power(p0 = 0.50, p1 = 0.9, k = 30)
# One null probability per value set:
grim_binomial_power(p0 = c(0.5, 0.7, 0.8, 0.9, 0.6, 0.5, 0.4), p1 = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.