Description Usage Arguments Value Author(s)
This function generates nmcmc MCMC samples for a Bayesian Tensor Graphical Model. Each precision matrix is modeled according to a GWishart distribution. The output, returns the samples for each presion matrix as well as the adjacency matrix samples.
1 2 3 4 5 6 7 8 9 10 |
t |
List of Sample Tensors |
b |
A vector with the Prior degrees of Freedom for each precision matrix. If NULL it sets the prior for each presicion at 3. |
D |
List of Prior Scale matrices for each precision matrix. If NULL it defaults to the corresponding Identity matrices for each presicion matrix. |
C |
List of Initial Values of the Precicion Matrices to start the MC markov chain. If NULL each presicion matrix is initialized as the corresponding identity matrix. |
beta |
A vector containing the prior probability of having and edge between to vertices for each precision. If NULL it sets the value at 0.5 for every edge matrix. |
burnin |
Number of sample to burn in in the MCMC. |
nmcmc |
Number of MCMC samples desired as output. That is without considering the burn-in period. |
method |
Either 'E' for Exchange or 'DMH' for Double Metropolis Hastings. By default is set to 'DMH'. |
List containg two other lists. One for the Precison matrices and another one for the adjacency matrices.
A list of arrays for Precicion matrices, the list goes through every precision matrix.
A list of arrays for Adjacency matrices, the list goes through every adjacency matrix.
Rene Gutierrez Marquez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.