Sampling data using Gibbs sampling for use in the examples
Sampling from pairwise binary Markov model using Gibbs sampling. This function is not efficient and only intended to be used in the examples.
BMNSamples(Theta, numSamples, burnIn, skip)
Parameter matrix for the model from which the data is being generated.
Number of samples to return.
Number of samples to discard as burn in.
Number of samples to discard in-between returned samples.
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
Returns a matrix of 0 and 1 of size
p is the number of rows of