New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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