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.

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