Description Usage Arguments Value See Also Examples
View source: R/pi_MCSim_beta.R
Define the simulation function to generate failure probability with Beta prior distributions as conjugate prior to binomial distributions (for binomial RDT).
1 | pi_MCSim_beta(M, seed, a, b)
|
M |
Simulation sample size |
seed |
Random seed for random sample |
a |
Shape parameter 1 for beta distribution |
b |
Shape parameter 2 for beta distribution |
Vector of failure probability sample values
Other Prior distribution generation functions:
pi_MCSim_dirichlet()
1 | pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.