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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1721 views
  • 0 likes
  • 3 in conversation