pcor_mat | R Documentation |
Extract the partial correlation matrix (posterior mean)
from estimate
, explore
, ggm_compare_estimate
,
and ggm_compare_explore
objects. It is also possible to extract the
partial correlation differences for ggm_compare_estimate
and
ggm_compare_explore
objects.
pcor_mat(object, difference = FALSE, ...)
object |
A model estimated with BGGM. All classes are supported, assuming there is matrix to be extracted. |
difference |
Logical. Should the difference be returned (defaults to |
... |
Currently ignored. |
The estimated partial correlation matrix.
# note: iter = 250 for demonstrative purposes
# data
Y <- ptsd[,1:5] + 1
# ordinal
fit <- estimate(Y, type = "ordinal",
iter = 250,
progress = FALSE)
pcor_mat(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.