Sampling from pairwise binary Markov model using Gibbs sampling. This function is not efficient and only intended to be used in the examples.

1 | ```
BMNSamples(Theta, numSamples, burnIn, skip)
``` |

`Theta` |
Parameter matrix for the model from which the data is being generated. |

`numSamples` |
Number of samples to return. |

`burnIn` |
Number of samples to discard as burn in. |

`skip` |
Number of samples to discard in-between returned samples. |

`BMNSamples`

generates `numSamples`

by using Gibbs sampling. When using Gibbs sampling, it is necessary to discard the initial samples, which is controlled by the parameter `burnIn`

. In order for the drawn samples to be independent, samples in-between also have to be discarded, which is controlled by `skip`

.

Returns a matrix of 0 and 1 of size `numSamples`

times `p`

where `p`

is the number of rows of `Theta`

.

Holger Hoefling

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.