jtextor / dagitty

Graphical analysis of structural causal models / graphical causal models.
GNU General Public License v2.0
282 stars 46 forks source link

Incorrect comments for dconnected and dseparated in documentation #26

Closed rer98 closed 4 years ago

rer98 commented 5 years ago

In the R documentation for dconnected and dseparated methods, the following examples are listed at the end:

"dconnected( "dag{x->m->y}", "x", "y", c() ) # TRUE dconnected( "dag{x->m->y}", "x", "y", c("m") ) # FALSE dseparated( "dag{x->m->y}", "x", "y", c() ) # TRUE dseparated( "dag{x->m->y}", "x", "y", c("m") ) # FALSE"

The comments for the last two (dseparated) lines should be the other way around, as in :

"dseparated( "dag{x->m->y}", "x", "y", c() ) # FALSE dseparated( "dag{x->m->y}", "x", "y", c("m") ) # TRUE"

jtextor commented 4 years ago

Thanks! Fixed in the latest commit.