View source: R/bayes_one_stage_direct.R
bayes_one_stage_direct | R Documentation |
Calculates rejection probability for one-stage Bayesian proportion test
bayes_one_stage_direct( req_p = 0.995, true_p = 0.995, gamma = 0.8, n = 200, prior_alpha = 0.5, prior_beta = 0.5 )
req_p |
observed count |
true_p |
total count |
gamma |
posterior probability threshold needed to reject, defaults to .8 |
n |
sample size, defaults to 200 |
prior_alpha |
alpha parameter of beta prior, defaults to .5 (Jeffrey's prior) |
prior_beta |
beta parameter of beta prior, defaults to .5 (Jeffrey's prior) |
a 2-element list with df of all possible observed values and probability of rejection
bayes_one_stage_direct(true_p = .996, n = 1800, gamma = .7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.