path_to_network: Precision matrix from ordered path model

View source: R/path_to_network.R

path_to_networkR Documentation

Precision matrix from ordered path model

Description

Takes a path model and generates the corresponding (standardized) precision matrix or covariance matrix. The inverse of network_to_path.

Usage

path_to_network(B, psi = NULL, output = "precision")

Arguments

B

input p \times p weights matrix

psi

variance-covariance matrix for the residuals. If NULL (the default) will impose the constraint that the variables have variance 1 and the residuals are uncorrelated

output

Function returns the precision ("precision") or covariance ("covariance") matrix

Value

a p \times p precision or covariance matrix

References

\insertRef

ryan2019SEset

\insertRef

shojaie2010penalizedSEset

\insertRef

bollen89semSEset

See Also

network_to_path, SEset_to_network


SEset documentation built on March 18, 2022, 5:51 p.m.