Description Usage Arguments Value
View source: R/couple_metropolis_to_condbern.R
A coupling of two metropolis samplers targetting the same Conditional-Bernoulli distribution Chain1 starts from the stationary distribution and chain2 is initialized uniformly from the support
1 2 3 4 5 6 7 | couple_metropolis_to_condbern(
alpha,
sum_x,
num_mcmc,
compute_sse = FALSE,
verbose = FALSE
)
|
alpha |
vector of probabilities for the Poisson-Binomial distribution |
sum_x |
sum of x |
num_mcmc |
number of MCMC iterations; if num.mcmc = Inf, then run the algorithm until the two chains couple |
compute_sse |
binary, default is FALSE; if compute_sse = TRUE, then returns the sum-squared-error distance from chain1 to chain2 |
verbose |
binary, whether to print messages |
a list that contains
meeting time
sum-squared-error distance from chain1 to chain2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.