Learn R Programming

SEset (version 1.0.1)

get_psi: Calculate residual-covariance matrix based on a path model and covariance matrix

Description

Takes an ordered path model and corresponding variance-covariance matrix and computes the appropriate residual covariance matrix (psi)

Usage

get_psi(B, sigma, digits = 3)

Arguments

B

input \(p \times p\) linear SEM weights matrix

sigma

variance-covariance matrix of the variables

digits

how many digits to round the result to

Value

a \(p \times p\) residual variance-covariance matrix