BookmarkSubscribeRSS Feed
Lili_Cai
Calcite | Level 5

The default p-value of sas is 0.05. How can i reset the p-value when running the code?

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

Hello and welcome to the SAS communities 🙂 

 

Please show us the code you are running? Then we can answer your question.

PaigeMiller
Diamond | Level 26

@Lili_Cai wrote:

The default p-value of sas is 0.05. How can i reset the p-value when running the code?


I'd have to disagree with this.

 

SAS computes the p-value for each test, it does not use 0.05. If the computed p-value is 0.02, then SAS shows 0.02. If the computed p-value is 0.80, then SAS shows 0.80.

 

So it's not clear what you are doing, or why you say this about p-values.

--
Paige Miller
Lili_Cai
Calcite | Level 5

Hi, Miller,

Thanks for your reply.

Actually, I would like to set p=0.1 when running the sas code. I just figure it out that adding alpha=0.1 will be enough.

Thanks again,

 

PaigeMiller
Diamond | Level 26

I would like to clarify this.

 

The p-value is not changed by any ALPHA=0.1 setting that you can specify. The p-value simply is the p-value and there's nothing you can do to change it, that's not a SAS thing, it's true in all software and it's true even if you do the calculations by hand.

 

ALPHA= only affects hypothesis tests (which may be exactly what you want), but it does not affect p-values.

--
Paige Miller

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1674 views
  • 6 likes
  • 3 in conversation