Tables of counts (occasionally proportions of marginal counts), arranged by (at least) two marginal categories, displaying bivariate or multivariate frequencies. Sometimes called crosstabs.

learn more… | top users | synonyms

3
votes
1answer
26 views

Denominator term in Chi-Square-Test for association in a contingency table

The general formula for the Chi Square Test for association in a contingency table with $I$ rows and $J$ columns, and cell counts $n_{ij}$ is $$ \chi^2 = \sum_{i=1}^I \sum_{j=1}^J \frac{(n_{ij} - ...
3
votes
0answers
12 views

chi-squared test vs fisher's test vs … => highly unbalanced length frequency data

I would like to statistically verify if two distributions are identical. Basically, the first distribution is a length frequency distribution from a large population ("population"). The second is the ...
2
votes
0answers
44 views

Chisquared on categorical data or a Wilcoxon test on the counts hereof?

This question is related to a question I had in R on SO here The background of my question is fairly simple. I was given two "databases" in the form of data.frames ...
0
votes
1answer
14 views

How to perform a conditional cross-tab in R or Excel? [closed]

I recently was given a project which consists of: pulling together words from ~500 small tweets and doing a matrix, which shows which words occur together in which tweets. I am wondering how I can ...
0
votes
2answers
75 views

Hypothesis testing using R

...
0
votes
1answer
17 views

Log Linear Models: Interpretation when None Fit

This is question 9.6 from Categorical Data Analysis by Alan Agresti (Wiley, 2013). The question asks us to find a Log Linear with the best fit for a 2x2x2 contingency table. The following are the ...
0
votes
0answers
6 views

How to adjust logistic models in case bivariate analyses encounter issues?

The model looks like: Y = X1 + X2 + ... + Xi Y is categorical or, to be exact, ordinal Xs can be categorical (dichotomous, ordinal, nominal) or continuous I first run bivariate analyses between Y ...
2
votes
0answers
23 views

Does N-1 correction for Pearson's Chi-Square apply to r x c tables generally?

Campbell (2007) recommended what he called the "N-1" correction for chi-square tests performed on two-by-two contingency tables. He described the correction as: "the K. Pearson chi-squared test ...
0
votes
0answers
31 views

How to enter data into contingency table directly?

I'd like to create a contingency table. I do it using: matr=matrix(c(62,61,36,19,10,21,58,60,39,22,12,19,91,83,72,23,52,62,43,28,59,57,29,20,12),5,5) but it ...
3
votes
1answer
71 views

Hypothesis testing based on Likert type data

I know this site is full of similar questions, but either their answers do not apply, or I'm missing something. I have data from a questionnaire. Responses are in the form of Likert items, some of ...
0
votes
0answers
48 views

Seeking basic advice re. contingency matrix for time-limited predictions

I am looking for advice on how to construct a contingency matrix ... A subject is measured on day 1 and a score is computed. This is repeated daily generating a series of scores. If on a given day ...
0
votes
0answers
29 views

Two tails or one tail McNemar's test in a binary classification problem. Which one should i choose?

I'm using McNemar's test for compare two designed models in a binary classification problem. As you know we have two kinds of this test. ...
1
vote
1answer
257 views

3x3 contingency table: what to use instead of chi-squared test?

I have questionnaire data from subjects divided into 3 groups, G1, G2 and G3. Subjects had to answer a question, and they had the options A1, A2 or A3 to choose from. The correct answer depended on ...
1
vote
0answers
19 views

test to show statsticial change due to an intervention

I have a group of 222 test results that were reviewed separately by two interpreters X and Y. Based on their assessment, they were to assign management into 4 categories A, B, C and D. Then another ...
2
votes
1answer
86 views

stats for 2x4 contingency table with both very large and small or zero counts

I have 7000 2x4 contingency tables with count data. They represent a particular position in a genome and the number of times each dna nucleotide is observed at that position in 2 different ...
2
votes
0answers
26 views

Visualise significant differences in a contingency table?

I'm working with pandas and scipy, and I would like to find a quick way to visualise unusual values in a contingency table. Say this is my contingency table: ...
0
votes
2answers
58 views

Logistic regression, Chi-square, and study design

I have a study in which I have developed a new predictor (binary) for a disease (also a binary variable). The study has two parts. In the first part, I want to test if my predictor is strongly ...
0
votes
1answer
105 views

2x2 contingency table - maximum likelihood estimate of the odds ratio and exact confidence intervals

I have two questions regarding the following 2x2 contingency table: 1, How can I derive the maximum likelihood estimate of the odds ratio ($OR = (a*d)/(c*b)$) 2, How can I derive exact confidence ...
2
votes
1answer
139 views

Proper analyses for 2x2 contingency tables

So I have multiple questions about the different types of analyses that can be used on a 2x2 contingency table and when different analyses should be used. To open, I'll note that this stems from my ...
1
vote
1answer
98 views

Why use chi-square (or other) statistic over regression modeling for 2x2 contingency tables?

I have a question regarding the use of logistic/log-linear regression vs. contingency test statistics, such as chi-square. Can someone explain to me why it would ever be preferable to use test ...
1
vote
0answers
57 views

How to report log linear models of contigency tables

I am using log linear models (loglm function, library MASS of R) to evaluate if 3 variables ...
1
vote
0answers
84 views

Testing specific categories after Fisher's exact test in 2 x k tables

I have two variables, one with 2 categories and one with 6 categories. To test, whether there is any relation between these variables, I performed Fisher's exact test, which gave a significant result. ...
2
votes
1answer
225 views

Why use G-test and the likes for AB testing at all?

I am learning about AB testing using the G-test. In my example, I have a 2x2 contingency table. ...
2
votes
2answers
132 views

Multiple testing: contingency table or logistic regression approach for survey?

I have a survey asking a person's gender (M/F), geographic region (West, East, Midwest, South) and a few other demographic variables along with two dozen questions in which they can disagree / ...
0
votes
1answer
32 views

Using split function in contingency table [closed]

I am quite beginner in R and I want to do a task that I think is manageable but I am still figuring out how. I have a contingency table like this: ...
2
votes
0answers
171 views

Contingency tables, Chi-Squared analysis and next steps in R

I'm hoping one of the more experienced R programmers/statisticians out there can help me with something, or explain why what I'm trying to do is stupid :-) In the past, I've done analysis of survey ...
0
votes
0answers
52 views

Which contingency method to use with a 3x3 table yet still account for expected or discrete choice?

Im not sure what test to conduct when I have 3x3 matrix of data and still account for availability. So, in a simple chi square you have an observed observation and then you are often able to ...
0
votes
0answers
25 views

Help with calculation of crossing more than expected from observed vs simulated data

I want to know if moose are crossing water more than expected. I followed the methods written in Beyer et al 2013 which I am now completely confused as to how to actually do the analysis. I am ...
1
vote
1answer
33 views

Coerce contingency table to report unrepresented classes [closed]

I have a contingency table computed from the out of sample observations. In some cases not all classes are represented in the out of sample and hence do not appear. I want to coerce the contingency ...
0
votes
0answers
75 views

Model selection of multinomial logistic regression for 2x3 contingency table

I want to analyze a 2x3 contingency table using multinomial logistic regression and I hope to be able to do it in Matlab or in R. I have looked around in old threads, but haven't been able to find a ...
0
votes
1answer
99 views

Alternative to Chi-Square, etc for categorical variables

I am trying again to explain my problem, and I have more concrete results. I have tried every potentially relevant test I can find, and none seem to work quite right. The question is illustrated ...
0
votes
0answers
48 views

Probability of Event from a table

I have the following table: From here I want to answer the following question: P(CHILD CAN RECOG BEG SOUNDS OF WORDS – YES | CHILD RECOGNIZES LETTERS - Most of them). From my understanding of ...
1
vote
1answer
150 views

Meta-analysis of RR and OR calculated from 2x2 tables in R using metafor

Background My question concerns the calculation of risk ratios and odds ratios for meta-analysis using the metafor package. I know it looks long, but please bear ...
0
votes
1answer
613 views

Post-hoc Tests for Fisher's Exact Test

I am running a series of Fisher's test to analyse some 2x2 contingency tables with small values. I have found significance. Is there anything equivalent to Cramer's V or the Odds Ratio or some sort of ...
7
votes
2answers
382 views

Bayesian analysis of contingency tables: How to describe effect size

I'm working through the examples in Kruschke's Doing Bayesian Data Analysis, specifically the Poisson exponential ANOVA in ch. 22, which he presents as an alternative to frequentist chi-square tests ...
0
votes
0answers
18 views

One-Tailed Fisher's Exact Test [duplicate]

How can I calculate p using a one-tailed fisher's exact test for a 2x3 (or 3x2) contingency table using excel? I found the formula ...
0
votes
0answers
55 views

Cochran-Armitage test for trend in a contingency table

I have a 2x4 contingency table and I'm testing for a monotone trend. How can the weights (scores) be applied in the following situation: The 1st category is expected to have no effect on the ...
1
vote
1answer
38 views

Name of this simple descriptive method for showing crosstable combination typicalities?

This might be a basic question, but I have no clue what this descriptive method could be named. Simplified, I have a cross-table with Occupations (e.g., doctor, lawyer, engineer) as rows, and Hobbies ...
1
vote
1answer
65 views

Sequential importance sampling for multi way contingency table

Full disclosure: this is a homework problem. I'm having a really hard time understanding the algorithm for applying SIS to contingency tables or what it even means to do sequential importance sampling ...
3
votes
1answer
2k views

How to interpret Cochran-Mantel-Haenszel test?

I'm testing the independence of two variables, A and B, stratified by C. A and B are binary variables and C is categorical (5 values). Running Fisher's exact test for A and B (all strata combined), I ...
1
vote
0answers
37 views

Testing association between two categorical variables, with repeated experiments

Say you are counting sharks and whales in the Atlantic and Indian occeans and want to check if eg sharks prefer the Atlantic and whales the Indian occean, as described in the example here. But instead ...
0
votes
0answers
20 views

How to compare the fit of two tables of percentages?

I have two tables, you can think of them of results of two models. I would like to compare them to a benchmark to evaluate which model is a better fit. What statistical technique do I need to do this ...
2
votes
1answer
192 views

Analysis method for count data with unequal sample sizes and categorical predictors?

I have a problem I've been going over and over for months to find the right statistical analysis method. I'm planning to execute the analysis in R, so any mention of appropriate packages is also ...
3
votes
2answers
153 views

Test of independence on contingency table

I have a simple contingency table with two nominal variables. Let's say Age and Gender. The software that I'm using reports the relationship between the two variables using Pearson's Chi-Square Test ...
2
votes
0answers
55 views

Testing equality of two or more contingency tables

Which options are there to test, whether two contingency tables of the same variables, say $X$ and $Y$, are equal across the levels of a third discrete variable, say $Z$? I can think of a log-linear ...
0
votes
1answer
63 views

Conditional table, how to fill it

I found this question and since I'm learning probability I'm not sure how to go about it: ...
0
votes
1answer
108 views

Contingency table analysis to rank preferences of birds per feature

I have a dataset that contains observations of objects that female blackbirds carry to their nests. The birds have id tags and the objects are grouped categorically with respect to their ...
1
vote
0answers
57 views

How to test association in contingency tables with very small numbers and proportions?

I have a sample of 197 responses. 8.6% (17)are from Group A, the remainder from Group B. (The groups are mutually exclusive, and not independent). (If it helps visualize the issue, Group A is under ...
0
votes
0answers
144 views

Fisher's exact test, very small sample size, RxC table, gave me bad result

I apply Fisher's exact test on very very small sample size. Each location in the table would have about 1 or two samples. The fisher's method has no room to enumerate the the tables, and returns me a ...
1
vote
1answer
115 views

Contingency table with 2 different time series

I am trying to put the two time series of my Excel spreadsheet (see link below), into a contingency table. https://www.dropbox.com/s/2f96oylxj97fuih/example.xls The first series is the number of ...