## How to cross tabulate statistical significance using CHISQ

Regular Contributor
Posts: 196

# How to cross tabulate statistical significance using CHISQ

Hi,

I have a situation where i have values for products in 1,0.

I want to compare all vs all products and need chisq statistics for them.

like for A vs B, B vs C. and statistical significance for all of those values?

Thanks

Posts: 2,116

## Re: How to cross tabulate statistical significance using CHISQ

Check out the documentation for PROC FREQ and its TABLES statement.

SAS/STAT(R) 13.1 User's Guide

Regular Contributor
Posts: 196

## Re: How to cross tabulate statistical significance using CHISQ

The freq and tables statement though computes the frequencies of 1,0 for each product. I want the CHISQ statistic for all product vs product comparison. If I run at one time, it give only overall CHISQ

Super User
Posts: 20,735

## Re: How to cross tabulate statistical significance using CHISQ

Post a sample of your data. Any reason you can't do comparisons selectively or are you trying to adjust your p-values?

Regular Contributor
Posts: 196

## Re: How to cross tabulate statistical significance using CHISQ

the data would be like:

 PRODUCT VALUE A 1 A 0 A 0 A 1 A 1 B 0 B 0 B 1 C 0 C 1 C 0 C 1

I want comparison of A vs B, A vs C and C vs A. One method is subsetting data for each one. But I want to do it without subsetting similar to ANOVA.

Super User
Posts: 20,735

## Re: How to cross tabulate statistical significance using CHISQ

I think Proc CatMod is what you're looking for, but not sure it does chisquare analysis.

Regular Contributor
Posts: 196

## Re: How to cross tabulate statistical significance using CHISQ

well, i had tried logistic regression. But the p values, are actually the probability of intercept being 0/1 for that particular variable, and not for statistical significance of CHISQ

Discussion stats
• 6 replies
• 269 views
• 0 likes
• 3 in conversation