BookmarkSubscribeRSS Feed
soham
Calcite | Level 5
Hi,
Can someone provide some help for calculating Q1, Q3 from sample size of each group?
Here is an example:
I have two groups with sample values and difference from Compared.


Group A Group B Difference(A-B)


Yes 100/150(66.7%) 80/160(50.0%) 16.7

No 50/150(33.3%) 80/160(50.0%) -16.7


Thanks,
Srisoham
2 REPLIES 2
Ksharp
Super User
Give you an example.Maybe it would help you a little.


[pre]
proc means data=sashelp.class nway;
class sex;
var weight;
output out=want q1= q3= /autoname;
run;
[/pre]


Ksharp
Reeza
Super User
Your data appears categorical...I'm not sure quartiles will be a valid measurement.

You need the data points to calculate the quartile you can't use the sample size and difference directly.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

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.

Discussion stats
  • 2 replies
  • 1803 views
  • 0 likes
  • 3 in conversation