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

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.

 

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