ciTest(x, set=NULL, ...)
## S3 method for class 'data.frame':
ciTest(x, set=NULL, ...)
## S3 method for class 'table':
ciTest(x, set=NULL, ...)
## S3 method for class 'list':
ciTest(x, set=NULL, ...)
x
.set
.x
can be 1) a table, 2) a dataframe whose columns are
numerics and factors or 3) a list with components cov
and
n.obs
.
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 set
.
(Notice an abuse of the '+' operator in the right-hand sided formula:
The order of the variables does matter.)ciTest.table
ciTest_table
ciTest.data.frame
ciTest_df
ciTest.list
ciTest_mvn
chisq.test
## contingency table:
data(reinis)
## dataframe with only numeric variables:
data(carcass)
## dataframe with numeric variables and factors:
data(milkcomp1)
ciTest(cov.wt(carcass, method='ML'), set=~Fat11+Meat11+Fat12)
ciTest(reinis, set=~smo+phy+sys)
ciTest(milkcomp1, set=~tre+fat+pro)
Run the code above in your browser using DataLab