Description Usage Arguments Value
Gives one sample from the conditional Bernoulli distribution, either with exact method or with MCMC. This function is a wrapper for idchecking_cpp and metropolis_condbern_cpp
1 |
sum_x |
sum of the Bernoullis |
alpha |
vector of success probabilities |
exact |
binary, if TRUE, then use id-check sampling, otherwise use the metropolis algorithm. Default is TRUE. |
num_sample |
default is NULL. |
sample, a length N binary vector, with 1 at the chosen entry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.