View source: R/all_functions.R
MarkEqRcg | R Documentation |
MarkEqMag
determines whether two RCGs (or subclasses of RCGs) are
Markov equivalent.
MarkEqRcg(amat, bmat)
amat |
An adjacency matrix of an RCG or a graph that can be a |
bmat |
The same as |
The function checks whether the two graphs have the same skeleton and unshielded colliders.
"Markov Equivalent" or "NOT Markov Equivalent".
Kayvan Sadeghi
Wermuth, N. and Sadeghi, K. (2012). Sequences of regressions and their independences. Test 21:215–252.
MarkEqMag
, msep
H1<-matrix(c(0,100,0,0,0,100,0,100,0,0,0,100,0,0,0,1,0,0,0,100,0,0,1,100,0),5,5)
H2<-matrix(c(0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,100,0,0,1,100,0),5,5)
H3<-matrix(c(0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,0),5,5)
#MarkEqRcg(H1,H2)
#MarkEqRcg(H1,H3)
#MarkEqRcg(H2,H3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.