Description Usage Arguments Value References Examples
View source: R/constrained_post.R
Compute the posterior distribution with off-diagonal elements of the precision matrix constrained to zero.
1 2 3 4 5 6 7 8 | constrained_posterior(
object,
adj,
method = "direct",
iter = 5000,
progress = TRUE,
...
)
|
object |
An object of class |
adj |
A |
method |
Character string. Which method should be used ? Defaults to
the "direct sampler" (i.e., |
iter |
Number of iterations (posterior samples; defaults to 5000). |
progress |
Logical. Should a progress bar be included (defaults to |
... |
Currently ignored. |
An object of class contrained
, including
precision_mean
The posterior mean for the precision matrix.
pcor_mean
The posterior mean for the precision matrix.
precision_samps
A 3d array of dimension p
by p
by iter
including the sampled precision matrices.
pcor_samps
A 3d array of dimension p
by p
by iter
including sampled partial correlations matrices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.