Plot.heatmap: Given an input matrix, we can split it into smaller...

Description Usage Arguments Details Value References See Also Examples

View source: R/111.Sub-table-analysis-heatmap.R

Description

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.

Usage

1

Arguments

mat

- matrix for which the sub-matrix is to be generated

Details

This can be used as an outlier detection method as well as observing the individual cells within an IxJ table

Value

A heatmap plot

References

[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

See Also

Other IxJ Inference methods: Local.Odds.Ratio, Nominal.Odds.Ratio, Reversal.point, Subtable.Odds.Ratio, generate.heatmap.matrix

Examples

1
2
3
4
5
6
Drills=c(2,	10,	4,	2 ) # Example data from [reference 1]
Pots= c(3,	8,	4,	6)
Grinding.Stones=c( 13, 5, 3, 9)
Point.Fragments=c(20, 36, 19, 20)
mat=rbind(Drills,Pots,Grinding.Stones,Point.Fragments)
Plot.heatmap(mat)

RajeswaranV/vcdPlus documentation built on May 27, 2019, 7:28 a.m.