Description Usage Arguments Value Note Author(s) See Also Examples
Moralize a directed acyclic graph which means marrying parents and dropping directions
1 2 3 4 5 6 7 8 |
object |
A directed acyclic graph represented either as a 'graphNEL', a 'matrix' or as sparse 'dgCMatrix'. |
result |
The representation of the moralized graph. When NULL the representation will be the same as the input object. |
... |
Additional arguments, currently not used |
amat |
Adjacency matrix |
A moralized graph represented either as a 'graphNEL', a 'matrix' or a sparse 'dgCMatrix'.
The workhorse is the moralizeMAT
function.
S<f8>ren H<f8>jsgaard, sorenh@math.aau.dk
1 2 3 4 5 | daG <- dag(~me+ve,~me+al,~ve+al,~al+an,~al+st,~an+st)
moralize(daG)
daG <- dag(~me+ve,~me+al,~ve+al,~al+an,~al+st,~an+st, result="matrix")
moralizeMAT(daG)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.