BookmarkSubscribeRSS Feed
GS2
Obsidian | Level 7 GS2
Obsidian | Level 7

Using SAS 9.4

 

I am running the following code:

 

proc univariate data= have normal plots;
class graft;
var age_sx bmi_sx ;
run;

proc npar1way data= have wilcoxon;
class graft;
var age_sx ;
OUTPUT OUT= KW_PVALS (KEEP=_VAR_ P_KW);
RUN;
PROC PRINT DATA = KW_PVALS;
run;

 

ai would like to present the 95% CI along with the p-value. Is there a good method for producing that from the code I already have? Thank you

 

4 REPLIES 4
Reeza
Super User
Did you check the options on the OUTPUT statement? That' would be the start, especially since you're only keeping a single value you're dropping the rest which likely has what you want.
ballardw
Super User

Confidence interval of what? In which data set?

GS2
Obsidian | Level 7 GS2
Obsidian | Level 7

I need to confidence interval of the median as my data is not normally distributed. CIbasic in the proc univariate would work except that statements assumes the normality of the data 

Reeza
Super User
You don't usually calculate parametric statistics on a non-parametric measure such as the median. Usually with the median you report the quartiles as well, Q25 and Q75.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1328 views
  • 0 likes
  • 3 in conversation