View source: R/bayes_two_stage_sim.R
bayes_two_stage_sim | R Documentation |
Helper function for Bayesian two stage simulations
bayes_two_stage_sim( req_p = 0.995, true_p = 0.995, gamma = 0.8, alpha = 0.05, n1 = 200, n2 = 800, 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 |
n1 |
first stage sample size, defaults to 200 |
n2 |
second stage sample size, defaults to 800 |
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 df of simulated outcomes and posterior probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.