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
5 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
1answer
34 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
64 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
28 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
38 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
24 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
11 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
15 views

How to interpret contingency table 3 x2 with Yates correction?

I ran a contingency test and obtained the following results ...
1
vote
1answer
33 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
44 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
60 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
28 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
1answer
39 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
61 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
18 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
35 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
65 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
22 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
23 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
15 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
15 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
20 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
32 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
17 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
11 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
24 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
13 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
39 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
39 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
25 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
134 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
24 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
35 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
40 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
20 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
29 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 ...
0
votes
0answers
20 views

Stats for habitat preferences

I have what I think is a three level contingency table, with time spent in three habitats for two species, and whether their 'condition' was in the presence of a competitor species or not. example ...
1
vote
0answers
15 views

Obtaining measures of effect for contingency tables with multiply imputed data

The epi.2by2 function in the epiR package computes a chi-square test and provides measures of effect when count data are ...
1
vote
1answer
97 views

Comparison of proportions using McNemar's Chi-Square using Pre- and Post- data for two disease conditions

This question follows-up on the post: What is the difference between McNemar's test and the chi-squared test, and how do you know when to use each? I am examining a pre- and post- intervention data ...
0
votes
0answers
45 views

Compare frequencies in HUGE number of categories

I have 2 samples, each with many (e.g. 100'000) different categories (colors in urn model), and counts for each category (number of balls of each color - many with few counts, and few with higher ...
1
vote
0answers
35 views

Best test for 2xK contingency table with low cell counts and small overall sample size?

I am looking for the optimal test to use on a contingency table with 2 categorical variables (first variable has 2 levels, second has 4 variables). The cell counts can be as low as 1 or 2 and the ...
0
votes
0answers
12 views

Analyzing/modelling discrete numerical responses and determining associations based on categorical co-variates

I need and would be grateful for some advice regarding the analysis of some data that has been gathered and coded by a third party. The data is part of a project regarding performance in the health ...
0
votes
0answers
28 views

Relationship between chisquare test for trend and linear regression

In his book "Medical Statsitics, Fourth Edition", Martin bland explains that the chisquare test for trend can be used to evaluate a trend in a contingency table. He uses the following example: ...
3
votes
2answers
94 views

Given the marginals of a contingency table, what is the maximum observable value for the $\chi^2$ Pearson statistic?

I know that given a $R\times C$ contingency table observed on $N$ subjects, the maximum value of $\chi^2$ statistics is $N\cdot [\min(R,C)-1]$. But, this is independent of given margins (namely, row ...
2
votes
1answer
204 views

In statistics, is there a formal name to the two variables of a two-dimensional contingency table?

Is there a formal terminology for the variable in the columns and for the variable in the rows?
2
votes
1answer
73 views

Standard error of a proportion on a 2 x 2 contingency table

Why on a 2 x 2 table such as where $p = \frac{a}{a+b}$ the standard error of $p$ is $$\left(\frac{(a+c)(b+d)}{(a+b+c+d)^2(a+b) }\right)^{1/2}$$ ?
1
vote
0answers
22 views

Power analysis for contingency table

Following a cardiac surgery a patient will be classified into one of four categories: Nothing, Mild, Moderate, Severe. There is a new test which, when performed after the surgery, claims to be able to ...