contingencytable
A contingency table, also known as a cross-tabulation or two-way table, is a type of table in statistics that displays the frequency distribution of variables. It is particularly useful for examining the relationship between two categorical variables. The rows of the table represent the categories of one variable, and the columns represent the categories of the other variable. The cells within the table contain the counts of observations that fall into each combination of categories.
For example, a contingency table could be used to display the relationship between gender (male/female) and
Contingency tables are fundamental in statistical analysis, especially for hypothesis testing. Common statistical tests associated with