Learn R Programming

BGGM (version 2.1.5)

precision: Precision Matrix Posterior Distribution

Description

Transform the sampled correlation matrices to precision matrices (i.e., inverse covariance matrices).

Usage

precision(object, progress = TRUE)

Value

  • precision_mean The mean of the precision matrix (p by p matrix).

  • precision 3d array of dimensions p by p by iter including unconstrained (i.e., from th full graph) precision matrices.

Arguments

object

An object of class estimate.

progress

Logical. Should a progress bar be included (defaults to TRUE) ?

Examples

Run this code
# \donttest{
# data
Y <- ptsd

# fit model
fit <- estimate(Y)

# precision matrix
Theta <- precision(fit)

# }

Run the code above in your browser using DataLab