Test for conditional independence in a dataframe
Test for conditional independence in a dataframe.
set can be 1) a vector or 2) a right-hand sided formula in
which variables are separated by '+'. In either case, it is tested if
the first two variables in the
set are conditionally
independent given the remaining variables in
(Notice an abuse of the '+' operator in the right-hand sided formula:
The order of the variables does matter.)
NULL then it is tested whether the first two
variables are conditionally independent given the remaining variables.
set consists only of factors then
converted to a contingency table and the test is made in this table
set consists only of numeric values and integers then
converted to a list with components
cov.wt(x[,set], method='ML'). This list is then passed
ciTest_mvn() which makes the test.
An object of class 'citest' (which is a list).
S<f8>ren H<f8>jsgaard, firstname.lastname@example.org
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.