Programming the statistical procedures from SAS

Quartile Calculations from Samplesize and difference

Reply
New Contributor
Posts: 4

Quartile Calculations from Samplesize and difference

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
Grand Advisor
Posts: 9,447

Re: Quartile Calculations from Samplesize and difference

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
Grand Advisor
Posts: 16,875

Re: Quartile Calculations from Samplesize and difference

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.
Ask a Question
Discussion stats
  • 2 replies
  • 60 views
  • 0 likes
  • 3 in conversation