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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
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 ...
user avatar
  • 13
0 votes
0 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 11
0 votes
0 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
2 votes
0 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 1
1 vote
1 answer
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 ...
user avatar
  • 151
0 votes
1 answer
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 ...
user avatar
1 vote
3 answers
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 1
0 votes
1 answer
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 ...
user avatar
  • 127
0 votes
0 answers
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 ...
0 votes
0 answers
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" ...
user avatar
0 votes
0 answers
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}$?
user avatar
0 votes
0 answers
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: ...
user avatar
  • 147
1 vote
1 answer
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 ...
user avatar
  • 123
0 votes
0 answers
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 ...
user avatar
  • 475
0 votes
1 answer
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 ...
user avatar
  • 521
1 vote
0 answers
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 ...
user avatar
  • 521
2 votes
1 answer
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 ...
user avatar
  • 61
0 votes
0 answers
25 views

Similarity and distance measures from Presence-Absence data

I am doing some ecological analysis with presence-absence count data. I am interested in similarity and distance measures that have the form using the standard notion of: $$ \begin{array}{c|cc|c} &...
user avatar
  • 425
0 votes
0 answers
22 views

What is a "Multiple Events Exact Probability Test (MEEP)"

I am seeking a description or textbook source for a statistical approach (the Multiple Events Exact Probability Test or MEEP) used by an expert in an employment discrimination case, as cited in the ...
user avatar
  • 3,026
0 votes
0 answers
21 views

Significance Testing for the Difference between Binomials [duplicate]

I have two algorithms, $A_1$ and $A_2$. $A_1$ either accepts or rejects samples from dataset $P$ $A_2$ either accepts or rejects samples from dataset $Q$ Below is a 2x2 contingency table for the ...
user avatar
1 vote
1 answer
95 views

Can we get P value for each row in a contingency table?

I have following data on 4 different organisms infecting 115 adults and 69 children: Chi-square test can be applied to this table, but it will only show that there is non-uniformity somewhere in the ...
user avatar
  • 8,993
0 votes
0 answers
28 views

Applying EM Algorithm to 3x3 Contingency Table

Given the contingency table $$ \begin{array}{l} \begin{array}{l|ccc} & \text { Alcholoic } & \text {Non-Alcholic} & \text { Not Answered } \\ \hline \text { Male } & n_{11} & n_{...
user avatar
  • 1
2 votes
1 answer
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 (...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 1
0 votes
1 answer
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 ...
user avatar
0 votes
1 answer
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-...
user avatar
0 votes
0 answers
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: ...
user avatar
3 votes
1 answer
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 ...
user avatar
  • 301
2 votes
1 answer
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 ...
user avatar
  • 776
0 votes
1 answer
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/...
user avatar
  • 153
1 vote
1 answer
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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
  • 789
0 votes
0 answers
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 ...
user avatar
  • 1
0 votes
0 answers
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
1 vote
0 answers
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. ...
user avatar
  • 33
1 vote
1 answer
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 ...
user avatar
  • 141
0 votes
0 answers
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 ...
user avatar
  • 1
2 votes
0 answers
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....
user avatar
  • 1,035
1 vote
0 answers
18 views

Should I consider the contribution of a variable in correspondance analysis if the $cos^2$ is weak?

So I have this table that represents contribution and cosinus of variable in CA I noticed that the most popular choice ( 1-5 hours ) has the weakest contributions and the weakest cosinus. It made ...
user avatar
  • 177
0 votes
0 answers
26 views

n-way contingency tables comparison

I have a dataset containing various methods of splitting data into two groups. The true partition is not known, and I want to compare how similar the respective methods of partitioning are to each ...
user avatar

1
2 3 4 5
11