Description Usage Arguments See Also Examples
Compute the probability of type I error of the binomial proportions test for a given sample size (n) with specified beta priors
1 2 | sampleAlphaBinomial(n, a1, b1, a2, b2, a = a1, b = b1, pi0 = 0.5,
pi1 = 1 - pi0, c = 1)
|
n |
the sample size |
a1 |
alpha, the hyperparameter of the prior distribution |
b1 |
beta, the hyperparameter of the prior distribution |
a2 |
alpha, the hyperparameter of the prior distribution |
b2 |
beta, the hyperparameter of the prior distribution |
a |
alpha, the hyperparameter of the beta distribution under the null |
b |
beta, the hyperparameter of the beta distribution under the null |
pi0 |
the prior probability of the null hypothesis |
pi1 |
the prior probability of the alternative hypothesis |
c |
relative loss constant (loss due to type II error divided by loss due to type I error) |
1 2 3 4 5 6 7 8 | ## Not run:
a <- 5; b <- 5
sampleAlpha(t = 20, a, b)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.