View source: R/pi_MCSim_dirichlet.R
pi_MCSim_dirichlet | R Documentation |
Define the simulation function to generate failure probability with Dirichlet prior distributions as conjugate prior to multinomial distributions (for multi-state RDT).
pi_MCSim_dirichlet(M, seed, par)
M |
Simulation sample size |
seed |
Random seed for random sample |
par |
Parameters for dirichlet distribution |
Vector of failure probability sample
pi_MCSim_beta
Other Prior distribution generation functions:
pi_MCSim_beta()
pi <- pi_MCSim_dirichlet(M = 1000, seed = 10, par = c(1, 1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.