structMatrix | R Documentation |
This function finds an undirected graphical representation of a multivariate normal distribution with the given covariance matrix, by associating edges with non-zero entries. Graphical structure is given as an adjacency matrix.
structMatrix(X, threshold = 0.1)
X |
A variance matrix. |
threshold |
A numeric value giving the threshold for a value to be considered “non-zero”. |
For a multivariate normal model, zero entries in the inverse covariance matrix correspond to conditional independence statements true in the multivariate normal distribution (Whitaker, 1990; Dempster, 1972). Thus, every non-zero entry in the inverse correlation matrix corresponds to an edge in an undirected graphical model for the structure.
The threshold
parameter is used to determine how close to zero
a value must be to be considered zero. This allows for both
estimation error and numerical precision when inverting the covariance
matrix.
An adjacency matrix of the same size and shape as X
. In this
matrix result[i,j]
is TRUE
if and only if Node i
and Node j
are neighbors in the graph.
Models of this kind are known as “Covariance Selection Models” and were first studied by Dempster (1972).
Russell Almond
Dempster, A.P. (1972) Covariance Selection. Biometrics, 28, 157–175.
Whittaker, J. (1990). Graphical Models in Applied Multivariate Statistics. Wiley.
scaleMatrix
, mcSearch
,
buildParentList
data(MathGrades)
MG.struct <- structMatrix(MathGrades$var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.