Learn R Programming

gRim (version 0.1.2)

ciTest_table: Test for conditional independence in a contingency table

Description

Test for conditional independence in a contingency table

Usage

ciTest_table(x, set = NULL, statistic = "dev", method = "chisq",
adjust.df = TRUE, slice.info = TRUE, L = 20, B = 200, ...)

Arguments

x
A contingency table.
set
statistic
method
adjust.df
slice.info
L
B
...
Additional arguments.

Value

  • An object of class 'citest' (which is a list).

Details

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.) If set is NULL then it is tested whether the first two variables are conditionally independent given the remaining variables.

See Also

ciTest ciTest.data.frame ciTest_df ciTest.list ciTest_mvn chisq.test

Examples

Run this code
data(reinis)
ciTest(reinis, set=~smo+phy+sys)
ciTest_table(reinis, set=~smo+phy+sys)

Run the code above in your browser using DataLab