BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

Does anyone know how to do a P-Test and a Z-Test in Windows SAS?
I know there is a proc ttest which can give you the results directly of a T-Test, but I was not able to find anything for a P-Test and a Z-test.

Also, once the test is done, how do we output this into a table that can be exported into
Excel or Access?

Regards,
Shalini
4 REPLIES 4
Paige
Quartz | Level 8
Perhaps you could enlighten us as to what a P-test is?

A Z-test can be done very simply in a datastep as (Xbar-mu)/sigma, and then you look up the value from the z-table with the SAS function PROBNORM.
deleted_user
Not applicable
You can refer to this link see what is a P-Test :
http://uk.answers.yahoo.com/question/index?qid=20070401154639AA1OJ8p

Also, it would be really helpful if you could send me an example of how to use PROBNORM.
deleted_user
Not applicable
Actually it would be really nice if you could send me a piece of code to do a Z-test in your way

Thanks,
Shalini
Paige
Quartz | Level 8
So the p-test is really a p-value? Virtually every SAS statistical procedure produces p-values. Problem solved!

PROBNORM is explained in SAS help, along with an example.

I don't write code for people on the internet ... if you try to write code and can't get it to work, I'll be happy to provide further assistance.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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