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
Check out the documentation for PROC FREQ and its TABLES statement.
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
Post a sample of your data. Any reason you can't do comparisons selectively or are you trying to adjust your p-values?
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.
I think Proc CatMod is what you're looking for, but not sure it does chisquare analysis.
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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.