Description Usage Arguments Details Value Note References See Also Examples
Check conditional independence between two variables based on the d-separation criterion.
1 |
x |
An object of class |
var1 |
The name of the first variable. |
var2 |
The name of the second variable. |
given |
A vector containing the names of conditioning variables. If |
The d-separation is a necessary and sufficient condition for conditional independence. See Pearl (2000), page 16 and following).
Logical
The result is unchanged if arguments var1
and var2
are switched.
Dependence is a necessary but not sufficient condition for causation: see the discussion in Pearl (2000).
J. Pearl (2000). Causality: models, reasoning, and inference. Cambridge University Press. Cambridge, UK. ISBN: 978-0-521-89560-6
new.cibn.
1 2 3 4 5 6 | data(bankrisk_code)
bankrisk_bn <- new.cibn(bankrisk_code)
#
dSepCheck(bankrisk_bn, var1="Age", var2="Edu")
dSepCheck(bankrisk_bn, var1="Portf", var2="Edu", given="Risk")
dSepCheck(bankrisk_bn, var1="Portf", var2="Edu", given=c("Risk","Life"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.