pi_MCSim_beta {MSRDT} | R Documentation |
Beta Prior Simulation for Binomial RDT
Description
Define the simulation function to generate failure probability with Beta prior distributions as conjugate prior to binomial distributions (for binomial RDT).
Usage
pi_MCSim_beta(M, seed, a, b)
Arguments
M |
Simulation sample size |
seed |
Random seed for random sample |
a |
Shape parameter 1 for beta distribution |
b |
Shape parameter 2 for beta distribution |
Value
Vector of failure probability sample values
See Also
Other Prior distribution generation functions:
pi_MCSim_dirichlet()
Examples
pi <- pi_MCSim_beta(M = 1000, seed = 10, a = 1, b = 1)
[Package MSRDT version 0.1.0 Index]