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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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