# Questions tagged [contingency-tables]

Tables of counts (occasionally proportions of marginal counts), arranged by (at least) two marginal categories, displaying bivariate or multivariate frequencies. Sometimes called crosstabs.

523 questions
Filter by
Sorted by
Tagged with
1 vote
23 views

### Large Pearson residuals

My aim is to see if there exists a relation between the variables "Category" and "Types", spec. if there is a tendency for a particular category to use a particular type. These are ...
23 views

### Relation between row and column proportions and total proportions in a matrix

Consider $R$ be an $I\times J$ proportion table with elements $r_{ij}$ such that $\sum_i\sum_j r_{ij}=1$. Let $P$ be its row-wise proportion table with elements $p_{ij}=r_{ij}/\sum_jr_{ij}$ and $Q$ be ...
7 views

### How are effect sizes calculated following a cellwise residual analysis?

I have used SPSS to create a 2X4 contingency table concerning the relationship between two categorical variables: depression diagnosis and 4 sleep disruptions. I carried out a chi square test of ...
17 views

### How should I calculate effect sizes for a 2X4 table?

I have used the software SPSS to produce a 2X4 contingency table, using categorical data. I am aware that odds ratio is only applicable for 2X2 tables. Are there alternatives to odds ratio to try and ...
1 vote
23 views

### Using Cramér's V to evaluate correlation between categorial variables with small numbers within contingency tables

I am evaluating correlations between categorical variables in a data set. I have seen Cramér's V is one way I can calculate this, and I know it takes the chi-squared statistic as one of the elements ...
123 views

### Fisher's Exact Test for 4 subgroups

I have a question for using Fisher's exact test for subgroups. I have 39 subjects that was divided into 4 groups( n = 9, 5, 10, 15, respectively). There were 3 conditions dividing the groups. Table ...
57 views

### Choosing statistical test for Preference-shift

I am having trouble choosing the proper method to support my hypothesis. I have conducted an animal study, where subjects chose A or B, 6 times a day for 3 days (day 1~3). At first, I divided the ...
21 views

### Appropriate analysis of ranked and categorical data for swiss-system tournaments

I am looking for some advice and help on how best to analyse swiss-system tournament data (https://en.wikipedia.org/wiki/Swiss-system_tournament) In terms of my data, I have tournaments that happen ...
97 views

### How to test if watching a advertisement only 1 time is enough to change one's preference

I'm sort of having a trouble finding what statistical test to use in a specific project of mine. My experiment was as follows: I have 10 friends and they all prefer Coke cola then Pepsi. Each of them ...
9 views

### Straightforward question regarding contingency tables

So say I have a 4x4 contingency table. The question I have been asked only concerns the first column. I've been asked to essentially conduct multiple comparisons between each pair of categories ...
1 vote
18 views

### Test whether two categorical questions are statistically different?

I have two questions (Q1, Q2) and they can be answered with either Yes or No. I want to test if there is a significant difference between the answers to Q1 and Q2, because the questions are related to ...
38 views

### What hypothesis testing for comparing two categorical distributions?

What statistical test do I need to use to test for a significant difference in the distributions of two different categorical variables? As an example, I need to test whether the distribution of a ... 1 vote
80 views

### Using svychisq with complex survey tables that have one or more cells with null values

Does anyone more experienced with R's survey package know about an alternative for svychisq for the case of a contingency table with at least one cell with a zero value? There does not seem to exist ...
18 views

### Breslow-Day vs. the Chi2 test for contingency table

Let's assume there are 3 experimental centres: A, B and C. At each centre, we check some percentage structure, X to Y, say X/Y*100% I want to check the heterogeneity across the centres. I was told to ...
25 views

### 2x2 contingency table with some data-points paired and some independent

There are two items in a task (item A, item B). On each of the two items participant can score success (1), failure (0), or not provide a meaningful answer (NA). Participants with NA on both item are ...
26 views

### How to correctly perform a goodness-of-fit test for a contingency table (two-way, three-way, or more), in situations other than independence testing?

Let's say I have the following table from a sample of 462 people: Gender Happy Meh Sad Men 70 32 120 Women 100 30 110 I don't want to test it against the hypothesis of independence, but against ...
39 views

### Appropriate stat test for multiple 3x3 tables

In my study, each subject produces a 3x3 contingency table.So I have a table of counts of how many times a subject responded X Y Z in condition A, B or C. All the columns sum up to 50 (num of trials ...
42 views

### Cochran Mantel Haenszel vs. Breslow-Day - what's the relationship?

I was told, that the Breslow-Day tests the assumption on homogeneity for the CMH, the same way we check homogeneity of variances in ANOVA (to focus only on the means, not being "confounded" ...
27 views

### Conditional probability in three-way Contingency table

If I wanted to find $P(\gamma = yes \mid \beta = A, \alpha = no)$, would this simply be $\frac{X_5}{X_5+X_6}$?
43 views

### Contingency table under complex survey design yields inconsistent counts

When creating a contingency table in a particular dataset the counts don't add up to the correct total. This is the table produced by svytable: ...
1 vote
30 views

### Correct Hypothesis Test - Comparing Means Soccer Leagues

I'm trying to work out if the home advantage for two soccer leagues are different, where teams try to score more goals than their opponent to win, otherwise drawing or losing. Home advantage is the ...
10 views

### What is the degree of cell sparsity that Poisson model can tolerate?

For models with no interaction terms, my understanding is that all the marginal cells need to have non-zero counts, in order to have finite estimates. If this minimum requirement is satisfied, will a ...
75 views

### Significance test of improvement of clustering methods compared to reference - correct idea?

Performing cluster analysis, I have a reference for the results and the results of two methods A and B. I am able to calculate fitness metrics (like adjusted mutual information) between the reference ...
1 vote
33 views

### How to perform significance test between two contingency tables? [duplicate]

Performing cluster analysis, I have a reference for the results and the results of two methods A and B. I am able to calculate fitness metrics (like adjusted mutual information) between the reference ...
60 views

### Contingency Table: Proportions between two Choices differ, p-Value of 1?

I have survey data, where participants where asked to choose two times between yes and no For this example let's say (although I am note quite sure if this is a good example). Choice1: Do you want to ...
25 views

58 views

### Testing if one binary variable is related to another binary variable

I was given an exercise question in class where the 2 variables in the given dataset was gender and grade. Both are binary variables - if a student got a grade over 70, he/she would be recorded as 1 (...
44 views

### Comparison vs Reference Group, which tests to use in this scenario?

we are researching whether the date of a certain medical procedure impacts the complication rate of said procedure. To this end we have identified multiple risk factors we would like to study more ...
40 views

### Why does the contigency table Bayes Factor test does not behave like an omnibus test?

I have a contigency table and want to know whether the distributions differ between columns. For example, let's say I want to know whether the distribution of children with academic vs. non-academic ...
63 views

### Compute p-value in a contingency table other than 2x2 table

I guess I have a newby question here. I have used the tableone R package to create the contingency table shown below. I am struggling to understand which test was used by the package to compute the p-...
20 views

### A/B test contingency table splitting in multiple ways....risk of false positives?

I have data for an A/B test conducted for an online store. All the variables are categorical. For every unique visitor the following were recorded: ...
108 views

### 2x2 contingency table: what test should be used?

Assume the following experiment: $G$ people with certain disease are randomly assigned into 2 groups with equal probability. People in group $i$ will received medicine $m_i, i=1,2$. After a period of ...
49 views

### 2x2 contingency table, $d$ statistic?

I am reading The Fluctuating Female Vote: Politics, Religion, and the Ovulatory Cycle. (It shows up in several of Gelman's papers as an example of how not to do statistics.) Among the reported ...
82 views

### Best log linear model from 3-way contingency table

The file "Aspirin" contains a 2 × 2 × 2 contingency table with columns defined as follows in R. Column 1: V1=Count. [Nonnegative integer count for each cell in the Table.] Column 2: V2=Case/...
1 vote
30 views

### Matched pairs design: individual confidence intervals for pre and post

I have a matched pairs design. I have a 2x2 table showing success/failure in pre and post: Post (yes) Post (no) Pre (yes) 0 10 Pre (no) 20 30 My colleague would like a confidence interval on the ...
1 vote
36 views

### Sample three Bernoulli variables given the 2 by 2 by 2 table

I want to sample three Bernoulli variables given their 2 by 2 by 2 table: where the last column is the probabilities with sum being equal to 1. What I am thinking now is to use a multivariate normal ...
33 views

### What statistic am I actually looking for and how do I properly calculate it?

I think I am looking at odds or likelihood ratios in this scenario, but I'm having trouble figuring out how to actually calculate my numbers to get an answer to my questions. I have 309,508 total 3rd ...
22 views

### 2x2 Table and comparing proportions across Treatment and control group, and within a group

I collected data were pairs of participants interacted in a strategic game with two choices each, A or B. Thus, the four outcomes are (A, A) ; (A, B) ; (B, A) ; (B, B). In the image (output) the ...
39 views

### How to find out if two variables with three levels each are independent of one another in R

for a university project I'm doing a literature review and I have a dataset where each line represents one paper and then I scored the data for two variables which each come in three levels: level of ... 38 views

### Using phi as a measure of correlation for categorical analysis

I'm working on a data analysis project where I've been asked to measure the association between specific values of categorical variables, and I wanted to make sure my thinking was correct. So for ...
1 vote
17 views

### Why does one compute an outer product of marginal distributions (of contingency table) instead of splitting data up completely equally?

I am studying about the chi-squared test statistic and came across the following code. ...
1 vote
233 views

### How to use the chi squared test (a biological investigation)

Imagine four habitats - A, B, C and D - set up in a choice chamber and two species of the same family, X and Y, 20 individuals of each. In a series of experiments, we put these species into the choice ...
26 views

### Fisher's Exact Test for 2x2 Table with Random Zero

I'm trying to determine if the rate of mutation for a particular gene is significantly different between two groups (primary tumor and metastases) with Fisher's exact test and so my contingency table ...
26 views

### fisher.exact test not returning expected p-value [duplicate]

I am trying to run Fisher Exact Test, however, I get unexpected results. I thought the two.sided p-value should be twice as large than the minimal one-sided p-value....
1 vote