Helper function. Takes a covariance matrix and ordering and generates a lower-triangular weights matrix.
cov_to_path(sigma, ordering = NULL, digits = 2)input matrix, with rows and columns in desired topological ordering Must be an invertible square matrix
character vector containing the dimension names of the input matrix in the desired ordering
the number of digits used to round the output
lower triangular matrix containing regression weights of the path model. Element ij represents the effect of \(X_j\) on \(X_i\)