BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
steeleye
Fluorite | Level 6

Hello!

 

I am currently working organizing statistical results which requires outputting p-values <0.0001. Rather than having the results display as zero, such as:

steeleye_0-1606861785361.png

I would like for my p-values to be displayed as:

steeleye_1-1606861856020.png

How would I go about doing this?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @steeleye,

 

That's what the PVALUEw.d format was designed for.

 

Example (using the default w and d values):

data _null_;
input p;
put p pvalue.;
cards;
0.1234
0.01
0.001
0.0001
0.000099
0.000032
;

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hello @steeleye,

 

That's what the PVALUEw.d format was designed for.

 

Example (using the default w and d values):

data _null_;
input p;
put p pvalue.;
cards;
0.1234
0.01
0.001
0.0001
0.000099
0.000032
;
steeleye
Fluorite | Level 6
Wow, thank you so much!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 871 views
  • 2 likes
  • 2 in conversation