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!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 954 views
  • 2 likes
  • 2 in conversation