Creates a graph object representing the graph structure implied by a parameter matrix.
Usage
Gamma2graph(Gamma, tol = get_large_tol(), check = TRUE)
Sigma2graph(Sigma, tol = get_large_tol(), k = NULL, full = FALSE, check = TRUE)
Theta2graph(Theta, tol = get_large_tol(), k = NULL, full = FALSE, check = TRUE)
partialMatrixToGraph(M)
Arguments
- Gamma
Numeric \(d \times d\) variogram matrix.
- tol
Numeric scalar. Entries in the precision matrix with absolute value smaller than this are considered to be zero.
- check
Whether to check the inputs and call
ensure_matrix_symmetry_and_truncate_zeros
on the outputs.- Sigma
Numeric \(d \times d\) or \((d-1) \times (d-1)\) covariance matrix.
- k
NULL
if the input/output matrix is \(\Sigma\)/\(\Theta\). Else, an integer between 1 and d indicating the value of k in \(\Sigma^k\), \(\Theta^k\).- full
Logical. If
TRUE
and!is.null(k)
, the input/output matrix is a \(d \times d\) matrix with the kth row filled with zeros.- Theta
Numeric \(d \times d\) or \((d-1) \times (d-1)\) precision matrix.
- M
Partial matrix with
NA
entries indicating missing edges.
Value
An igraph::graph
object.
See also
Other parameter matrix transformations:
Gamma2Sigma()
,
chi2Gamma()
,
par2Matrix()