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

0
votes
0answers
10 views

Test for paired data on categorical variable with >2 levels

I am looking for the appropriate statistical test to compare frequencies over a categorical variable with >2 classes, for paired data (in practice, each individual has been labelled A, B, C or D ...
1
vote
0answers
7 views

Is multinomial logistic regression appropriate for a dataset containing categorical data with small cell counts?

I'm analysing a large dataset from a questionnaire with 560 respondents. A cluster analysis performed based on coded free-text data resulted in 11 mutually exclusive clusters. Based on explanatory ...
0
votes
0answers
5 views
6
votes
1answer
67 views

How to express cells of a 2x2 table in terms of phi coefficient and marginal probabilities

Consider a typical 2x2 table of frequencies (shown in this image): Notation: The row variable is denoted R and takes on values 0 or 1; the column variable is denoted C and takes on values 0 or 1. The ...
1
vote
0answers
12 views

An appropriate alternative to chi2 for paired, categorical data (tables larger than 2X2)

I am analysing a data set consisting mostly of categorical data. This has resulted in a number of contingency tables (mostly, but not always larger than 2X2) that need statistical testing. Now, I ...
0
votes
0answers
28 views

significant chi-squared test but confidence interval for odds ratio does include 1

I have the contingency table: A B a 28 0 b 35 9 I applied the chi-squared test with Yates's correction, with p-values: ...
1
vote
1answer
36 views

why are the degrees of freedom for a chi-square test on a 2x2 contigency table always 1?

I know the "formula" is (# rows - 1) * (# columns -1). However, shouldn't the design of the experiment or observational study being conducted make a difference? The only experimental design I can ...
0
votes
0answers
5 views

Preprocessing contingency table

I'm going to apply a correspondence analysis on some datas. I'm having doubts on preprocessing the contingency table: my dataset contains informations on salaries and problems in different spanish ...
4
votes
1answer
27 views

Which observed frequency in a 2x2 contingency table is responsible for rejection of H0?

I'm carrying out a study on reported deaths of vultures (Gyps fulvus) in the Apennine mountains, Italy. I've performed a chi-square test on a 2x2 contingency table relating gender (male, female) to ...
0
votes
0answers
4 views

Comparing set of counts with different n sample and many zeros.

I had a look of may treats and find different pieces here and there but I cant figure out how to do this "simple" comparison. I have 2 counts (obtained with different methods but assuming from same ...
1
vote
0answers
28 views

Hypothesis testing for difference in proportions when pooled population proportion is known

The example I use below to frame my questions is a bit contrived, but I am hoping the answer will help to clarify my understanding of more complex, related issues. Suppose we know in advance that the ...
3
votes
0answers
46 views

Chi square test in a contigency table with sampling zeroes

im trying to estimate if an association exists between two variables in a 7x5 contingency table (the type of prosthesis with the type of complication). The table contains a lot of sampling zeroes and ...
1
vote
2answers
60 views

How to proceed with chi square test in R if one line has zeros?

I am trying to program with R. My categorical data is in a table of 5*5. However, the 5th line has only zeros. When I run the chi square test in a software program, it returns the result INVALID. But ...
0
votes
1answer
35 views

Fisher and chi-squared assumptions/limitations not met

Fisher exact test is said to be used with a total sample (n) < 1000, whereas chi-squared test should be used when each category (/cell in a contingency table) >=5. What if you have an mxn ...
2
votes
0answers
22 views

Effect size measure for mxn Fisher Exact Test

I'm using the R function to run fisher exact test for mxn contingency tables (since my sample size <5; limitation of the chi-squared test). Along with the p-value I want to state the effect size. ...
0
votes
1answer
16 views

Show that the adjusted values for 2x2 tables under the assumption of independence have the same absolute value

I am trying to show that, for 2x2 tables, under the assumption of independence, that all four adjusted residuals have the same absolute value. Adjusted residual: $r_{ij}=\dfrac{n_{ij}-\hat{u_{ij}}}{\...
0
votes
0answers
14 views

Why is homogeneous association symmetric

Could someone please explain to me why homogeneous association (say in a $2\times 2\times k$ table) is a symmetric property? As in why does homogeneous association between X and Y given Z mean there ...
1
vote
0answers
34 views

should the product of 2 independent binomials converge to a normal distribution for large sample sizes?

I have been studying 2x2 contingency tables and specifically I have been looking at situations where the marginals are fixed by design for one categorical variable. As an example, suppose a ...
0
votes
1answer
18 views

Using R: I want to create a contingency table with a 4 category variable [closed]

Currently I have data on SEX and outcome. For outcome there are 4 different values possible 1, 2, 3, 4. I want to create a contingency table (so that I can eventually do a Fisher test) such that I ...
0
votes
0answers
24 views

Fisher exact test with permutations to measure enrichment

I am looking at enrichment of a specific genomic feature within specific blocks in the genome. Based on simply the number/size of features and the genome blocks there is enrichment, but neither ...
0
votes
0answers
15 views

Poisson regression residual analysis

In a three factor poisson (log-linear) model $(A*B*C)$, when the highest interaction term $(A:B:C)$ is dropped, the response/raw residuals are exactly the same for different levels of two of the ...
0
votes
1answer
32 views

Measure heterogeneity among multiple samples and scale variables

I would like to know what are the available statistical measures for quantifying heterogeneity on data that look like this... ...
2
votes
0answers
18 views

Mutations in known DNA sequence: which test to use?

I am analysing a double knockout (mouse), and trying to see whether restoring one or another of the genes it's missing affects specific positions preferentially in a third gene. The data* looks ...
0
votes
0answers
32 views

Comparing classifier with random classifier. Imbalanced data with small sample.

I would like to compare a classifier I developed against a random classifier. However, I have only 82 testing samples with 12 (15%) positive cases. I am planning to use McNemar's test. The way I ...
0
votes
0answers
17 views

Sample size to determine correlation between multiple binomial variables?

How can I calculate the sample size to test for a correlation (p < alpha) between multiple (k > 2) binomial variables, where the frequency f of each variable is very low? For example, what sample ...
1
vote
0answers
38 views

Barnard's Exact Test (Boschloo's variant) when distribution is hypergeometric

Let's say, we have a standard $2 \times 2$ contingency table and because of low sample size we're about to use some type of Exact Test, e.g. Fisher's Exact Test (FET) or Barnard's Exact Test. It's ...
0
votes
0answers
23 views

Equation for marginal odds ratio

I am working my way through Alan Agresti's "Categorical Data Analysis and I am stuck at a seemingly very simple exercise. This is about a 2x2x2 contingency table. The notation used is as follows: ...
0
votes
1answer
33 views

Statistical analysis of fourier transform of a 2D image (freaking AMAZING)

I'm a statistics grad student, and I just started getting into Digital-Image-Processing (an analogy for processing super-large contingency tables). In the book "Digital Image Processing" by Gonzalez ...
1
vote
0answers
14 views

Conditional probability of contributing to the (1,1) cell of a 2-by-2 table, given the row and column sums

Suppose you have data from a 2-by-2 table \begin{array}{c|cc} {\rm } & {\rm Yes} & {\rm No} \\ \hline {\rm Yes} & N_{11} & N_{10} \\ {\rm No} & N_{01} & N_{00} \\ \...
1
vote
0answers
92 views

Statistical test for paired data in an r x c contingency table

To perform statistical test on paired data when we have two dichotomous nominal variables (i.e., in a 2 x 2 contingency table) we can use the McNemar's test. When ...
0
votes
0answers
13 views

How does *structural* symmetry effect the analysis of square contingency tables?

I am working with a contingency table new to genetics called a "Hi-C Dataset," which in it's simplest (and maybe not most articulate) sense represents counts of co-occurence in 3D SPACE of disparate ...
0
votes
0answers
27 views

Sample Size in a multiway contingency table

I am planning a trial involving sterilizing biological material with four treatments (1 Rinse and 15% solution strength, 1 Rinse and 25% solution strength, 2 rinse and 15% solution strength, 2 rinse ...
0
votes
0answers
28 views

Dealing with sampling zeros

I would like to perform a $\chi^2$-test, but due to low sample size in some cases, I have sampling zeros. One example of such a case: ...
0
votes
0answers
64 views

P values and calculating residuals in chi-squared contingency tables

Given an n x m contingency table I calculate a chi-squared value and probability for that table telling me if there are cells that differ significantly from the mean. I go to calculate the adjusted ...
1
vote
1answer
52 views

How to calculate mutual information from frequencies

Can someone explain to me how to calculate mutual information from contingency table? I have a contingency table containing counts from a sample of data And I want to calculate the mutual ...
0
votes
0answers
23 views

Comparison between two conditions

I want to compare the effects of a treatment with placebo. The values are the number of subjects that reach a particular level of pain threshold. Since the values in before and after are dependent ...
0
votes
0answers
24 views

How to calculate Wald Chi-squared test for contingency table

I am trying to understand the documentation from SAS concerning the Wald Chi-squared test for contingency tables via the surveyfreq procedure. Specifically, I am ...
1
vote
0answers
26 views

How do I create a four-way contingency table in R? [closed]

I’m doing interaction analysis and am trying to figure out how to set up the variables so I get the structures I’ll need in R. Not sure where to start, as most contingency table examples are VERY ...
1
vote
1answer
76 views

Residuals colors of the mosaic plot are all dark. Implies?

I am working on interpreting the nature of the association of a contingency table. I tried to provide a mosaic plot of the data that I have and it resulted to Can anyone help me interpret this data ...
2
votes
2answers
250 views

SciPy chisquare applied on continuous data?

chi2 seems to be used to compare distributions between categorical features. Is it possible to use SciPy chisquare function to compare two distributions of continuous data ? For example : ...
1
vote
0answers
20 views

How collapsing columns in contingency tables influences independence of observations

Suppose we've got a table of frequencies of different transcripts in two samples of different tissue. For each transcript I want to perform a between-sample pairwise frequency difference test and ...
-2
votes
2answers
83 views

Is there an r package similar to LEM for analyzing contingency tables? [closed]

Is there an R package for log-linear analysis that is similar to LEM? Here is an example LEM script ...
1
vote
0answers
48 views

Exact test for m x n contingency table conditional (i.e. fixed by design) on one margin

I have a $m \times n$ contingency table (with $m, n > 2)$ . The experiment yields ~15% cells with expected frequencies lower 5 and also zero counts in the empirical data. The prerequisite for the ...
2
votes
0answers
63 views

Fisher's exact test vs kappa analysis

I was reading a paper where the authors assessed the association between two different diagnostics tests intended to diagnose the same disease and they performed the analysis with Fisher's exact test. ...
0
votes
0answers
50 views

How to test the independence of two categorical variables with repeated observations?

I'm wondering how to test whether male and female birds differed significantly on the preference of habitat type on the following contingency table. ...
0
votes
0answers
189 views

Interpretation of global test (p-value) of the interaction term with two categorical variables, each has 3 levels, in Logistic regression

My data: I have a dichotomous outcome: Disease(Y/N); and 2 categorical independent variables, each has 3 levels -- IPV: 0 (ref), 1, 2 -- Race: White (ref), Black, Hispanic My research question: ...
2
votes
0answers
40 views

Calculating degrees of freedom for a contingency table with interactions

Below is a contingency table with residual deviance given by a Poisson regression model with a log-link. I have searched online and I believe that for the mutually exclusive model ...
3
votes
1answer
222 views

Logistic regression vs chi-square in a 2x2 and Ix2 (single factor - binary response) contingency tables?

I'm trying to understand the use of logistic regression in 2x2 and Ix2 contingency tables. For instance, using this as an example What is the difference between using chi-square test and using ...
1
vote
0answers
34 views

Is chi-squared for homogeneity right here?

The hospital I work for sends out a patient satisfaction survey after discharge (assuming a random independent draw of patients getting the survey), all multiple choice/categorical questions. Some of ...
0
votes
0answers
27 views

Chi square test for independence

While testing using contingency tables the hypothesis used are Ho: the two categorical variables are independent or not related H1: the variables are related. Suppose if Ho is rejected, can anything ...