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
1answer
21 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
53 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
6 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
21 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 ...
2
votes
2answers
62 views

Simulating a 2x2 contingency table (cohort study)

I want to simulate a 2x2 contingency table with fixed row totals. I know that the distribution would be binomial but I can't seem to do it in a matter than constraints the randomly generated elements ...
0
votes
1answer
54 views

Matthews/Phi Coefficient on a 2x2 Contingency Table with Rare Positives

Suppose I want to measure the degree people like gold versus silver. For the sake of argument, let's say I have a contingency table like so: ...
0
votes
0answers
5 views

Do I need to run an “a priori” power analysis before doing a content analysis?

I am planning to do a content analysis of social media posts from different groups, coding categories with categorical (binary) variables (0 = not present, 1 = present). I want to compare group ...
2
votes
1answer
57 views

Methods for analyzing “cross-frequency” tables?

I am looking for a statistical method that is suitable for the problem: which goods in my shop are most frequently bought together, and which aren’t? For my commodities, I can make a table like this ...
1
vote
0answers
77 views

Different formulas for two-sided mid $p$-value ($2\times2$ table setting)

I'm interested in testing independence of two binary variables in a $2\times 2$ table: i.e. $H_0: \theta=1$ against the two-sided alternative $H_1:\theta\neq 1$, where $\theta$ is the odds-ratio. ...
1
vote
1answer
142 views

Analysis 2x2x2 contingency table

I want to analyze whether the association between Variable A (expected value of two different options: high vs. low) and Variable B (choice proportions for each option) differs between the two levels ...
1
vote
1answer
36 views

Joint from Marginal distribution given one realization: 2x2 contingency table

I have the following issue: Lets say I have a 2x2 contingency table of left and right handed men and women and the outer sums (marginal distribution) $$ \begin{matrix} & Left & Rigth &...
0
votes
1answer
37 views

Repeated-measure contingency table with two variables with many levels

I am trying to analyze the results of a survey on what would make people of different ages visit certain tourist places. However, age was collected as age-group (not my fault). Hence, it is a ...
1
vote
2answers
52 views

Creation of contigency table and calculation of effect size (Chi2, Cramer's V)

I am a bit unsure in my approach of applying the Chi2 GOF test to my data and calculating the correct effect size. The situation: I am studying the occurrence of specific biological phenomena in ...
0
votes
1answer
69 views

Visualization associations between the symptoms - categorical data in R

I have a data frame with presence of symptoms which are categorical data (1 = present, 0 = absent). For instance: ...
2
votes
1answer
64 views

Interpreting Fisher's test and power analysis in R

Currently I want to check whether there is a significant difference between the data from two clusters with n1 = n2 = 6. ...
0
votes
0answers
14 views

Non-parameteric test on 2*2 contingency table [duplicate]

I got a data that can be categorized in two different ways and I like to test their association. The initial thought is Chi-squared test. However, the data is not normally distributed. What is the ...
0
votes
1answer
47 views

Generate contingency tables with bi-variate normal distribution

I want to generate r x c contingency tables using Bi-variate normal distribution. Most of the works deals with generating tables from multinomial distribution where the total frequency is fixed. ...
0
votes
1answer
28 views

Analysis of multiple response/check all that apply survey data

I am helping to review a manuscript and suffering from mental block on some data analysis. The data in question is from a cross-sectional survey, a health care provider KAP (knowledge, attitudes, and ...
0
votes
0answers
14 views

Deciphering Prior Concentration for Bayesian Contingency Tables

I'm having some trouble in wrapping my mind about the prior concentration parameter when calculating a Bayes factor for contingency tables. Specifically, the parameter prior concentration for package ...
0
votes
0answers
22 views

How to interpret contingency table 3 x2 with Yates correction?

I ran a contingency test and obtained the following results ...
1
vote
1answer
36 views

How to compare across rows/columns in a cross-tabulated table?

I am analyzing a survey which a table which crosstabulates a respondent's preferred candy bar size against how many candy bars they purchased in the last month. It looks like this: ...
3
votes
1answer
52 views

Approach to Analyzing Semi-Rare Events

I am often faced with analyzing data that follow a pattern as shown in a mock example in the image below. Key data characteristics: for any value of the predictor (e.g. temperature), the most ...
2
votes
1answer
62 views

Variance of $\chi^2$ statistic depends on $df$ but not on $n$?

I have an $r\times c$ contingency table. The chi-square statistic for the table is equal to $\chi^2 = \sum_{i=1}^{rc} (O_i - E_i)^2 / E_i$, where $O_{i}$ are the observed and expected counts for cell $...
0
votes
0answers
33 views

How to analyze a contingency table with time series?

I have a contingency table with frequency of food items (rows) measured across 10 years (columns). I wonder what kind of analysis I should use to model the variation in food frequencies with time (...
0
votes
2answers
419 views

Interpreting infinite odds ratio and confidence interval from Fisher's test

I've performed a two-sided Fisher's exact test on the following data, and the results include Infinity for the upper confidence interval and odds ratio. Are these results erroneous, and if not how do ...
1
vote
1answer
159 views

Why Kendall's Tau-c?

Wikipedia tells us: (link) Tau-c (also called Stuart-Kendall Tau-c) is more suitable than Tau-b for the analysis of data based on non-square (i.e. rectangular) contingency tables. What does $\...
0
votes
0answers
37 views

The coefficients and p-values in the Firth logistic regression when the data set is imbalance

My question is that in the case where the contingency table has imbalance data in terms of binary response success and failure, can I confidently say that the two-level categorical predictor is ...
0
votes
0answers
41 views

Statistical test for differences in proportions, over-dispersed count data

I have a nxm contingency table where I have counts of elements divided by type. For example: I would like to know if the proportions of any of the columns are different (i.e., is the G1/G2 proportion ...
1
vote
1answer
124 views

Appropriate way to visualize significance in 2x3 contingency table using mosaic plot

I've checked multiple threads about handling or visualizing contingency tables, but can't find one that can help my current question. I have a 2x3 contingency table: "group" variable has 3 levels not ...
0
votes
0answers
26 views

Interpreting log-linear model for contingency table in R

I'm looking at sample data and trying to determine whether there is any association between the height of the husband and that of the wife below. I don't fully understand what the symbolic ...
0
votes
0answers
26 views

Chi Square Homogeneity Test : proportions & total

In an experiment I observe counts for 2 species of fish on 10 random days in 2017 and 2018 (the number of fish sampled in each year can vary). I'd like to run the chi square test of homogeneity ...
0
votes
0answers
19 views

Difference between null and saturated log-linear models

I have data from an experiment testing the number of 'cases' at each of three measurement points (0, 12, and 24 weeks). I am interested in whether the proportion of cases across these measurement ...
0
votes
1answer
23 views

How to interpret cell values from statsmodels contingency table methods?

The documentation for the methods in statsmodels.stats.contingency_tables.Table is sparse; for example, for fittedvalues() it describes it "returns fitted cell ...
0
votes
0answers
25 views

Parameters, constraints and MLE of log-linear models

I want to use log-linear models to assess the type of (in)dependence between variables in $2\times2$ and $2\times2\times2$ contingency tables. In the process of doing so I would also like to ...
1
vote
1answer
57 views

Is Fisher's exact test the most powerful test for 2x2 contingency table?

I don't find the powerfulness of Fisher's exact test on Wikipedia. Are there any results about the power of FET vs other methods on 2x2 contingency tables?
0
votes
0answers
20 views

When to use a multicategory logit model versus a loglinear model?

Do you only use the baseline-category logit model when categorical responses have more than 2 categories? How is this different than the loglinear model, which is useful when at least 2 variables in ...
0
votes
0answers
14 views

Statistical significance in a sub contingency table

I have a contingency table of data for the twelve months of the year (i.e., a 2 x 12 table), and I want to evaluate the difference between two particular months (the probability of their values being ...
0
votes
0answers
38 views

Analysing contingency table with small samples

My question is about how to analyse very small samples on contingency tables. I have a contingency table with observation for 2 groups (first variable) answering questions with multiple choices (...
0
votes
0answers
15 views

Conditional Testing of Two-way Contingency Independence

I am reading about testing independence in two-way contingency tables from Mood Graybill and Boes's Introduction to the Theory of Statistics and is confused about testing independence. We have a two-...
0
votes
1answer
53 views

Two sample T test frequency table

I am struggling with a data analysis. I have made a survey and got the following answers in the first turn, I put them in a frequency table Don't agree at all: 8 Don't agree: 6 I don't know: 16 ...
0
votes
0answers
43 views

How to compute multiple Chi^2 P-values for each of a factor in a 3-way contingency table?

How were the p-values calculated using chi^2 (method cited in paper below) in the following table. Its a three way contingency table, tumor stage 1-4, race B/W and hospital city/university. They have ...
1
vote
0answers
31 views

Testing for non-zero values above and below the diagonal of a matrix

I have a $n\times n$ contingency matrix comparing count data (classification) of two procedures. I want to test for non-zero values above and below the diagonal (different classifications in both ...
1
vote
1answer
231 views

Is the Chi-Square Test of Independence the best option for 3x2 contingency table?

I have some data which in the terms of a 3x2 contingency table look in the following way. ...
0
votes
0answers
68 views

How can I calculate and what is the covariance in the contingency table?

In the following contingency table how can I calculate the covariance of the Age and Salary of 300 employees?
1
vote
1answer
42 views

Sample size needed to prove equal proportions

We are trying to prove that three groups have the same proportion of some effect. We are struggling with formulating the null hypothesis, and whether or not the sample size is big enough. The ...
1
vote
1answer
43 views

Are there any statistical tests or measures for paired data with more than two groups?

Are there any statistical tests or measures for paired data with more than two groups? My dependent variable is pretty flexible, but I'd really like to have five independent variables compared ...
0
votes
0answers
24 views

Overdispersed proportion test?

I am comparing proportions in genomic data. In particular, I compare two populations, A and B, and I look at genetic sites. In other words, I have N contingency tables ...
0
votes
0answers
19 views

Test of independence for response frequencies with multiple responses per user

Scenario: We have users in two categories, A and B. In each category, a user can provide a response which can be X, Y or Z. A user can provide one or many responses. Therefore, every subsequent ...
1
vote
1answer
30 views

Correlation between musical knowledge and some measured variables

I have this table: The table shows the occurrences for each feature and separates whether one has or not musical knowledge. I'd like to show in the test column a 'number' that could tell how strong a ...
1
vote
0answers
34 views

How to test for significant 2D movement including distance and direction?

We performed a controlled experiment where the experimental units are aquariums with either no treatment or application of a treatment with several replicates of each. Within the aquariums, there were ...