# NOT RUN {
# Both tables have strong association:
tables <- list(
matrix(c(30,0,0,
0,10,0,
0,0,20), nrow=3),
matrix(c(10,0,0,
0,20,0,
0,0,30), nrow=3)
)
strength.test(tables)
# One table has strong association:
tables <- list(
matrix(c(4,0,0,
0,4,0,
0,0,4), nrow=3),
matrix(c(4,0,4,
8,4,8,
4,0,4), nrow=3)
)
strength.test(tables)
# Both tables has no association:
tables <- list(
matrix(c(4,0,4,
8,4,8,
4,0,4), nrow=3),
matrix(c(4,0,4,
8,4,8,
4,0,4), nrow=3)
)
strength.test(tables)
# }
Run the code above in your browser using DataLab