Learn R Programming

MSRDT (version 0.1.0)

pi_MCSim_dirichlet: Dirichlet Prior Simulation for Multi-state RDT

Description

Define the simulation function to generate failure probability with Dirichlet prior distributions as conjugate prior to multinomial distributions (for multi-state RDT).

Usage

pi_MCSim_dirichlet(M, seed, par)

Arguments

M

Simulation sample size

seed

Random seed for random sample

par

Parameters for dirichlet distribution

Value

Vector of failure probability sample

See Also

pi_MCSim_beta

Other Prior distribution generation functions: pi_MCSim_beta()

Examples

Run this code
# NOT RUN {
pi <- pi_MCSim_dirichlet(M = 1000, seed = 10, par = c(1, 1, 1))
# }

Run the code above in your browser using DataLab