Hello,
I have a 4 by 2 frequency table:
| BMI groups | cat 1 | cat 2 |
| underweight | 1.4 | 1.6 |
| normal | 67.2 | 71.2 |
| overweight | 23.7 | 21.6 |
| obese | 7.7 | 5.6 |
Is there a way to obtain a p-value for significant difference for each BMI group when comparing cat 1 vs cat 2?
Thank you,
Justin
See this note.
Your data is not COUNT data. I suppose just to use ANOVA ? data have; infile cards expandtabs; input BMI : $40. cat1 cat2; cards; underweight 1.4 1.6 normal 67.2 71.2 overweight 23.7 21.6 obese 7.7 5.6 ; data temp; set have; cat='cat1';v=cat1;output; cat='cat2';v=cat2;output; drop cat1 cat2; run; proc glm data=temp; class bmi cat; model v=bmi cat/solution; quit;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.