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
2
votes
1answer
33 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 ...
0
votes
0answers
3 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
1answer
157 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 ...
0
votes
0answers
12 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 ...
2
votes
0answers
25 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
0answers
11 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 ...
0
votes
0answers
14 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 ...
0
votes
0answers
7 views

Freeman Halton Long hand

I am looking at this site: https://www.danielsoper.com/statcalc/formulas.aspx?id=58 Where for a 2x3 table it gives the following formula: The calculator equivalent (https://www.danielsoper.com/...
1
vote
0answers
18 views

Boschloo or Barnard? In which case?

For 2x2 contingency tables, my understanding is that Boschloo and Barnard both have uniformly more power than Fisher's exact test (even if all marginals are fixed??). But I am still confused about the ...
0
votes
0answers
24 views

How to assess if a distribution has significantly changed over time

I'm studying the incidence of different types of influenza in a country over several years. In particular, for years from 2015 to 2020 I know the relative abundance of 3 types of influenza (% of ...
0
votes
1answer
37 views

Chi-squared vs. t-test for death rates (percentage data)

I have data regarding death rates (DR) for 5 different groups of people (A-E) as shown below. Groups A B C D E DR 1% 3% 2% 4% 3% samples 200 800 300 100 700 I'm trying to find out observed ...
2
votes
1answer
174 views

What statistics can be used to analyze and understand measured outcomes of choices in binary trees?

I am conducting biological research on animal behavior. There is an arena set up like a binary tree. End nodes are sources of food (e.g. smells) or stimuli that can mix. The animal (or a group of ...
1
vote
0answers
28 views

Chi- square test or Mann Whitney test? [duplicate]

I have the following data: group A: very bad 12, bad 20, quite good 11, good 29, very good 14 group B: very bad 20, bad 10, quite good 6, good 11, very good 34 which test is appropriate for this kind ...
1
vote
1answer
15 views

Should I sum across variables before comparing proportions between groups?

I have the a dataset like the following: Experiment A B C Group 1 10 1 3 M 2 30 10 10 F 3 20 30 10 M 4 1 15 4 F And I am looking for differences in the proportions of A, B and C between the ...
1
vote
0answers
20 views

How to determine agreement between two sets?

I have two sets of Ids both drawn from the same background. I'd like to know the appropriate way to compare their similarity. Set A and B are often significantly different in length eg. ...
1
vote
1answer
10 views

Establish confidence / error for multiple contingency tables with dynamic outcomes

In a task, a participant sees two types of prompts, 1 and 2. The participant might answer A or B. The participant might give an answer that cannot be coded as A or B, we treat these as missing data. ...
1
vote
2answers
54 views

How to perform a statistical significance test between 2 groups of binary data?

I have a binary column where 0 means fail and 1 means success. This column have been grouped by a second column called events. Here's a data sample before grouping: ...
0
votes
0answers
14 views

p-value and choice of variables to enter the model

I would like to ask you what is the best way to select variables for helping the model to improve. The task consists of spam detection. I selected some features that I think they might be useful for ...
0
votes
1answer
16 views

Stats Model contingency table, unable to reshape data and run test for nd array 2 x 2 x k

Consider below list of 2×2 tables and CMH (Cochran–Mantel–Haenszel) test results. We are trying to determine if each specific centre was associated with the success of the treatment [Data from Agresti,...
0
votes
1answer
40 views

Analyzing replicates of contingency tables

Problem statement We would like to measure the effect of treatment on cell differentiation, in other words whether or not specific treatments cause cells to change their cell types. So we treat cells, ...
0
votes
0answers
5 views

Hypotheses in bayesFactor for contingency tables

Lately, in a non-English forum, someone asked how she could test counts from two discrete distributions for equal distribution. Her example was (my translation): One study found 76 red, 167 blue and ...
0
votes
0answers
19 views

Calculating Marginal and Conditional Probabilities from R Crosstable

I am having a difficult time understanding conditional and marginal probability when the variables are not discrete. I have three questions I am trying to answer: What are the marginal probabilities ...
0
votes
1answer
28 views

Find effect size of chi-squared data

I have data that looks like the following: A <- c(2,20,2,7) I want to do a post-hoc power analysis to check if my sample size is sufficient, but to do a power-...
0
votes
1answer
11 views

How to analyze contingency table results? Help with wording to describe observations

I'm learning about contingency tables and proportions. Need help interpreting this table of students interested in one of three subjects by gender. Male Female Science 20 (30.8%) 20 (30.8%) Math 30 ...
0
votes
0answers
15 views

Test Hypothesis given 4 Binomial Experiments

I am conducting an experiment to find out whether wearing a pink pullover as a male is perceived as more uncommon than as a female. For this purpose I am conducting a Bernoulli Experiment in 4 ...
0
votes
0answers
19 views

Assumptions of Likelihood Ratio and Chi-Square tests for a 2x2 table?

In testing independence in a 2x2 contingency table, are the assumptions of the Likelihood Ratio and Chi-Square tests the same or do they differ?
19
votes
3answers
846 views

Analysis of Danish mask study data by Nassim Nicholas Taleb (binomial GLM with complete separation)

Recently, Nassim Nicholas Taleb made this post about the recent Danish mask study, a randomized controlled trial which concluded that the proportions of newly diagnosed coronavirus infections was not ...
0
votes
1answer
75 views

How to analyze contingency table for multiple responses in SPSS or JASP?

I have two categorical (binary) variables: Gender (female vs. male) and 3 subject exams (English, Math, Science: Pass or fail). Everyone took all the subject exams (repeated measures). How can I ...
0
votes
1answer
33 views

Would it be appropriate with a Chi-2 test in this case?

First of all, thank you for such a warm welcome to this forum. I am doing a study to see what diagnoses are the most common in a specific group (1) compared to another group (2). I want to show that ...
0
votes
0answers
70 views

How to check normal distribution for categorical data in Excel?

I am currently exploring whether the presence of psychologists on wards has an impact on the number of incidents that occurs on the ward. Independent variable would be Psychologist Presence (Yes or No)...
3
votes
0answers
92 views

3X4 contingency table, which test? [closed]

I am testing to see if participants' responses to the same cue word given in written format and oral format differ from each other. To do this I set up a control condition where participants give ...
0
votes
1answer
22 views

Finding the MLEs for pi in a contingency table proof

Reference: https://data.princeton.edu/wws509/notes/c5.pdf In a two-dimensional table, (the multinomial model - section 5.1.2 in the link above), I was wondering how they get $$\hat\pi_{i.} = \frac{y_{...
1
vote
0answers
321 views

Help with a 2x3 contingency table significance test

MD here completely new to doing my own statistics In a study I'm currently working on, I have three groups that I am assessing for a various categorical Yes/No Variables, for example: Without ...
0
votes
0answers
53 views

Random distribution which statistical method

After K-means, I am iterating over many files consists of tables, mostly are 3X3. Some of them with "0" elements inside cells but most of them aren't. I read that chi2_contingencycouldn't be ...
0
votes
1answer
141 views

Chi-square test for multiple rows contingency table

I was trying to figure out if/how I can apply a chi-square test to my problem. I know how to deal with and interpret a case where I have only 2 mutually excluding groups, like male/female, and I want ...
0
votes
0answers
128 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
19 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
26 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 ...
1
vote
1answer
46 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 ...
2
votes
1answer
694 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 ...
2
votes
0answers
130 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
31 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
52 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
605 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
24 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
73 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
35 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
26 views

Analysis of contingency table with ordinal outcome?

What statistical test do I apply in following 2 situations: ...
3
votes
0answers
20 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
147 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 ...

1
2 3 4 5
10