statCount2D

Edit pageLast modified: 25 March 2024

The statCount2D function creates a new plotting context with new dataset which contains the "count2D" statistic calculated on sample of a two categorical variable x and y. It counts the number of observations in each pair of x-category and y-category. It's weighted, it means the weighted count for each pair is calculated (each element within a pair is counted along with its weight).