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
0
votes
0answers
13 views

Adjusted Pearsons residuals after Chi square test for independence are very large. Is it an issue?

Note: it's the first time I conduct this kind of analysis (about Pearson's residuals, not Chi squared), so I have no other reference point to know if my results make sense or not. I performed a Chi ...
0
votes
1answer
13 views

Age stratified analysis in R

I am working on a project for which I need to do age stratified analysis for age of onset, age at last visit to the hospital and age at death. Our collaborator wants me to create an "Age ...
0
votes
0answers
20 views

Independence models in sampling 2 way contingency table?

I have just went through a lecture on sampling 2-way contingency table data via multinomial, product multinomial and Poisson sampling. The associated reduced models for each sampling are the ...
0
votes
0answers
14 views

Best method to analyse multiple 2x2 contingency tables of a small sample?

I already looked around quite a bit but didn't find answers (I understood), so I apologise if this question should be a duplicate. I'm analysing a small cohort (n=15) of people with some observed ...
1
vote
1answer
36 views

Alternative to Bonferroni Correction when performing multiple one-vs-rest association tests

My question anonymizes the 'nouns' of the question to protect my employer. It is not really about lab rats and experimental treatments. I am also coming more from a Machine Learning background, so my ...
1
vote
0answers
18 views

How to correct zero cell counts for odds ratio calculations when variable has >2 categories

I am trying to calculate odds ratios for several univariate models with a binomial outcome. The problem is, for some of my variables, I have at least 1 zero count cell. It seems that the Haldane ...
0
votes
1answer
23 views

Nature of Dependence in Bayesian Contingency Tables

Question from a novice in both R and Bayesian approaches. I used the Bayes Factor package to calculate the BF for a contingency table of two nominal variables with 3 categories each and the results ...
0
votes
0answers
36 views

Chi squared test questions

As part of a small study, I've have put together a table with results from a population of individuals stratified by age. For each line, I would like to perform a comparison between a variable and the ...
2
votes
1answer
26 views

How to decide between presenting row percentages or column percentages when presenting a cross-tabulation?

I am trying to present the percentage distribution of three types of emotional states by several independent variables. A portion of the table for one of the independent variables, type of work, is ...
0
votes
1answer
19 views

Comparing Proportions - Mix of Small and Large Sample Sizes

I have twenty groups of observations (A1, A2, ... A20), each includes positive and negative cases. I would like to test whether the difference between proportions of positives of each group to others ...
3
votes
1answer
61 views

Does it have any meaning to compute the $\chi^2$ and the exact Fisher test on big contingency tables

I have several datasets containing integers. I want to perform a bivariate analysis between a specific subset of variables. However, some of them have a lot of modalities. Is computing a $\chi^2$ ...
1
vote
1answer
16 views

How to deal with zero cells in 2 x 2 tables, using R

I am trying to look at the relationship between two nominal variables, using R. However, I am not certain how to deal with cases where a 2 x 2 contingency table has one or more zero cells, as shown ...
3
votes
0answers
21 views

Analysis of contingency table with ordinal outcome?

What statistical test do I apply in following 2 situations: ...
3
votes
0answers
15 views

Is there any anova-like approach for calculating contingency tables across multiple levels within a factor

I want to compare success rates across a large number of different levels within a third factor to detect if there are statistically significant differences for at least one of the groups. I'm not ...
1
vote
1answer
30 views

Two sample test of independent proportions with weighted data?

In analysis of survey data, response data may often be weighted to reflect the sampling procedure or relative importance of the respondents. For instance, a consumer survey may sample 50 respondents ...
2
votes
1answer
36 views

Comparing counts between two groups with replicates [closed]

I hope you can help me. I need to compare count data (number of grazed plants among plants previously marked inside a plot) recorded in 4 different sites (considered replicates), each of them ...
1
vote
0answers
29 views

Comparing counts between groups with replicates

I hope you can help me. I need to compare count data (number of grazed plants among plants previously marked inside a plot) recorded in 4 different sites (replicates), each of them receiving 2 ...
0
votes
0answers
7 views

Suitable statistical test for multiple categories data?

I am compiling my research result which ended up like a table below: ...
0
votes
0answers
10 views

Fixed/unfixed maginals in case/control studies on pre-existing data?

I am performing analyses on a wide variety of existing datasets (taken from GEO) with case/control status. I want to do exact tests on a 2x2 contingency table and am unsure if I should use Barnard's ...
1
vote
0answers
19 views

How to calculate similarities/distances and conduct cluster analysis from contingency table

I have an 18x25 contingency matrix, rows are behaviors observed and columns are environmental features. I conducted a correspondence analysis via the CA() function in R and then clustered using the ...
0
votes
0answers
18 views

How to find out if interaction of three binary variables is significant?

If I have two binary explanatory variables $A$ and $B$, and one binary response variable $C$- we can find out if $C$ is associated with $A$ or $B$ by creating contingency tables of $A,C$ or $B,C$ and ...
0
votes
0answers
15 views

Pairwise external evaluation of clustering with a contingency table

I want to evaluate the clusters pairwise based on this publication: https://nlp.stanford.edu/IR-book/html/htmledition/evaluation-of-clustering-1.html (I have the ground truth of the real labels) So ...
0
votes
0answers
9 views

Likert scale vs Dichotomous. Please suggest

As per my understanding dichotomous response (Agree vs Disagree) has much better Power than Likert scale, because it is possible to do Fisher's exact test on 2-way contingency table, while such tests ...
0
votes
0answers
17 views

How to determine which columns make p-value result in 0.0 in contingency table?

I have a contingency table with which I am estimating if some categories are seasonal or not. I use p-value and Cramers V for that but for this question only p-value is important. The p-value resulted ...
1
vote
1answer
44 views

Are the marginals of contingency tables created from archaeological site data fixed or unfixed?

I am trying to understand the concept of fixed and unfixed marginals of contingency tables created out of human bone data retrieved from archaeological sites. When a site is excavated, by definition, ...
2
votes
1answer
27 views

Can $G^2$ statistic in log-linear model for contingency tables be negative?

Can $G^2$ statistic of log-linear (unsaturated) model in contingency tables be negative? Since saturated model with perfect fit has $G^2=0$ I don't think the unsaturated models can get negative $G^2$. ...
0
votes
0answers
6 views

Analyzing contingencies with levels

Suppose I have a sample with diagnostic information for two diseases, A and B, per individual. If I want to know whether an individual with disease A is more likely to have disease B than an ...
0
votes
1answer
50 views

Chi-square test restriction for contingency tables with observed counts

I have the following 2X2 contingency table with observed counts to perform Chi-square test. But i've read about Chi-square test ...
3
votes
1answer
57 views

What statistical test would be the most useful for a 3 x 2 table when more than 20% of cells are less than 5?

What statistical test would be the most useful for a 3 x 2 table when more than 20% of cells are less than 5? Chi square testing requires a min of 80% of cell counts to be over 5. For example, if I ...
1
vote
1answer
32 views

The probability of an observation belonging to one or other sample

Assume I asked 10 children and 10 adults whether they like my cake. 9 kids did and 1 didn't, while for the adults it was the reverse. Using these data, can I say that any random person who likes my ...
0
votes
1answer
41 views

Which statistical test should I use for 1 ordinal and two categorical variables?

It would be great if someone could help me out I would like to know if there is an association between 3 variables, mental health, having a health plan and income level. Below is a contingency table. ...
1
vote
0answers
59 views

Multinomial and Poisson relationship in contingency tables

I am researching the relationship between multinomial and Poisson distribution in contingency tables. Is what I have said below right? For context, the multinomial pmf is below. $$P(X_1=x_1,...,X_N=...
0
votes
1answer
47 views

Chi-squared test degrees of freedom and experiment design

In the chi-squared test of independence for a $r\times c$ contingency table, the degrees of freedom are set as $(r-1)(c-1)$, which can be seen as a goodness-of-fit test with $n - 1 - s$ degrees of ...
0
votes
0answers
24 views

How to calculate observed frequencies of the cells of a 2x2 table given the totals of rows and columns and the Chi square test p value?

Does exist a method to calculate back the observed values of a contingency table 2x2 when I have only the p value of the Chi square test and the marginal totals of rows and columns? I'm currently ...
0
votes
0answers
27 views

Qualitative analysis

Which test can I use for smaller data sets (<5 in a single cell, <20 in group, although N>500) but for larger grids (3x4, 4x5 etc.)? Chi-squared test can be used for larger grids but not for ...
1
vote
0answers
16 views

Comparing frequencies in two groups between two time periods

I've got data that are essentially set up in two 2x2 frequency tables. I have frequencies that males and females disperse or recruit to a given region. I am interested if the proportion of sexes that ...
1
vote
1answer
33 views

Help formatting data for use with Coin-package cmh_test in R [closed]

I would like to use the coin package (https://cran.r-project.org/web/packages/coin/coin.pdf) for estimating pvalues from a null distribution together with the cmh_test(,distribution = "approximate"). ...
1
vote
1answer
132 views

What is the difference between the so-called confusion matrix and contingency table? Are they the same?

I would like to understand the difference between the confusion matrix and contingency table in the context of classification (Machine Learning). It seems that different sources use their names for ...
2
votes
1answer
89 views

Calculating odds ratio when there is a confounder: contingency table vs logistic regression

For a 2x2 contingency table, $\begin{array}{ccc} \hline & Y=0 & Y=1 \\ \hline T=0 & n_{00} & n_{01} \\ \hline T=1 & n_{10} & n_{11} \\ \hline \end{array}$ ...
0
votes
0answers
22 views

Estimate contingency table entries from given marginal sums

I have got a table with known marginal sums: | | | | 7| | | | | 7| | | | | 6| | | | | 6| | | | | 5| | | | | 4| | | | | 3| +--+-+-+--+ |26|6|6|38| I want ...
1
vote
1answer
26 views

What does it mean when odds ratio and risk ratio aren't approximately equal ? $2 \times 2$ contingency table

Consider this $2 \times 2$ contingency table \begin{array}{|c|c|cc|} \hline \text{Treatment} & \text{Cured} & \text{Not Cured} \\ \hline \text{Tablet A}& 30&70 &\\ \hline \text{...
0
votes
1answer
31 views

Unconditional Contigency tables

Biology student here with a not so strong grasp of stats. I have the following question: Is the number of genes meeting some criteria in Wild type (given the number of genes not meeting criteria in ...
1
vote
1answer
25 views

Presence/absence data

I'm working on a study where I am testing whether individual species that I observed or didn't observe (presence/absence of observing species A on each survey) during drought and non-drought (presence/...
1
vote
0answers
61 views

Sample size in Fisher's exact test with larger contingency tables

I'm using Fisher's tests to evaluate contingency tables that are larger than 2x2; because they relate to transitions between behavioural states, they are usually 8x8, 9x9, sizes like that. I am ...
0
votes
0answers
49 views

Interpretation of discrepancy between prop.test and pairwise.prop.test results

My aim is to find out if infection state (pos / neg) is associated with the group of patients (A, B or C). For this analysis I have followed suggestion from How to analyze $ 2\times n$ contingency ...
0
votes
2answers
29 views

Test of Significance of Different Surgeries

I have a dataset about nose surgeries done in several years. Some surgeries were combined, e.g. multiple procedures were done during one surgery. After some surgeries, some complications appeared. My ...
1
vote
1answer
29 views

How to analyse a contingency table with specific expected distribution?

I have a 2x2 table of single nucleotide substitutions in DNA. The data rows represent the nucleotides in one genome (A) and columns are the nucleotides in the same positions of a different genome (B). ...
1
vote
1answer
84 views

How to perform multiple tests of contingency tables with more power: Fisher's / Barnard's test vs Logistic regression

I have a sample of answers to Yes / No questions: \begin{array} {c | c c c c} \hline \text{Case} & X_1 & X_2 & X_3 & X_4 \\ \hline 1 & 1 & 1 & 1 & 1 \\ 2 & 0 & ...
1
vote
0answers
8 views

significantly more down-regulated genes than up-regulated genes

I would like to test if my dataset has significantly more down-regulated genes than up-regulated genes. In my set of significant genes (BH-corrected) I have 20 up-regulated genes and 69 down-...
0
votes
0answers
646 views

How can I determine which cell chi-square value(s) contributed the most to a large 2-way chi-square omnibus test result?

I'm trying to determine which cells' values account for/contribute the most to a significant chi-square omnibus test result. Please see the below contingency table showing the numbers of diagnoses by ...

1
2 3 4 5
9