BookmarkSubscribeRSS Feed
lalohg
Quartz | Level 8

Hi there,

The Npar1was procedure is used to get the Kruskal Wallis test. The output of this procedure has lots of stats but I just need the median of several variables for two groups (numbers below are the medians in an hypothetical example) and the p-value of Kruskal Wallis test. What options  does SAS have for the npar1way procedure to get this?, an example below is what I need:

 

  Group 1 Group 2 p-value by Kruskal Wallis test
Age 15.4 18.2 0.34
height 1.67 1.87 0.2
Weight 67.2 62 0.02

 

all your help will be appreciated

 

Thanks

Lalohg.

1 REPLY 1
Reeza
Super User

I don't think PROC NPAR1WAY will give you a table like that. 

 

You can create it yourself using the ODS Output to compile it together though.

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
  • 1 reply
  • 1607 views
  • 0 likes
  • 2 in conversation