Description Usage Arguments Details Value References See Also Examples
View source: R/110.Sub-table-analysis.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 | generate.heatmap.matrix(mat, details = FALSE)
|
mat |
- matrix for which the sub-matrix is to be generated |
details |
- If this is set to TRUE, the the return value includes the full list of sub-matrix |
This can be used as an outlier detection method as well as observing the individual cells within an IxJ table
A list with
Hot.df |
Dataframe with the difference between the supporting matrix and the opposing matrix |
Suport.df |
Dataframe of the cell counts for support of table level Chi-sqaured |
Oppose.df |
Dataframe of the cell counts for opposing of table level Chi-sqaured |
sub-matrix |
list of sub-matrix - this is returned only if the details flag is set to TRUE |
[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
Other IxJ Inference methods: Local.Odds.Ratio
,
Nominal.Odds.Ratio
,
Plot.heatmap
, Reversal.point
,
Subtable.Odds.Ratio
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.