gibbs_1sampleDAG0 | R Documentation |
Implementation of Gibbs step for one-sample DAG0
gibbs_1sampleDAG0(param, tuning, priors, data, temp = 1, prob_rev = 0.5)
param |
a list with each tag corresponding to a parameter name. Valid tags are 'E', 'alpha', 'beta', 'delta', 'gamma', 'psi', 'tau', and 'rho'. The value portion of each tag is the parameter values to be updated. |
tuning |
a list with each tag corresponding to a parameter name. Valid tags are 'E', 'E_rev', 'alpha', 'beta', 'delta', 'gamma', and 'psi'. The value portion of each tag defines the standard deviations of Normal proposal distributions for Metropolis sampler for each parameter. The tag 'E' corresponds to birth or death of an edge, while 'E_rev' indicates reversal of an edge. The value portion of both tags should consist of the standard deviations of Gaussian proposals for alpha, beta, delta, and gamma for an update of E. |
priors |
a list with each tag corresponding to a parameter name. Valid tags are 'psi', 'tau', and 'rho'. The value portion of each tag defines the hyperparameters for one-sample DAG0. |
data |
a matrix containing data. |
temp |
a temperature. |
prob_rev |
the probability of edge-reversal. |
a list with the tags 'param' and 'acceptance'. The value portion of the tag 'param' gives parameter values after perfomring Gibbs step for one-sample DAG0. The value portion of the tag 'acceptance' shows the acceptance indicators for alpha, beta, delta, gamma, and psi.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.