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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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