Description Usage Arguments Details Value References See Also Examples
View source: R/111.Sub-table-analysis-heatmap.R
Given an input matrix, we can split it into smaller sub-matrix (min 2x2) and then find the Chi-squared test for each sub-matrix. The smaller matrix can "support" or "oppose" (have a different conclusion at 95 test value of the full input matrix. We count the number of times each cell supports or opposes the overall Chi-squared test. We also generate the possible list of sub-matrix.
1 | Plot.heatmap(mat)
|
mat |
- matrix for which the sub-matrix is to be generated |
This can be used as an outlier detection method as well as observing the individual cells within an IxJ table
A heatmap plot
[1] Mosteller F, Parunak A (2006) Identifying extreme cells in a sizable contingency table: Probabilistic and exploratory approaches. In: Hoaglin DC, Mosteller F, Tukey JW (eds) Exploring Data Tables, Trends, and Shapes, John Wiley & Sons, pp 189-224 [2] Kuhnt, S., Rapallo, F. & Rehage, Outlier detection in contingency tables based on minimal patterns A. Stat Comput (2014) 24: 481. doi:10.1007/s11222-013-9382-8
Other IxJ Inference methods: Local.Odds.Ratio
,
Nominal.Odds.Ratio
,
Reversal.point
,
Subtable.Odds.Ratio
,
generate.heatmap.matrix
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.