Help using Base SAS procedures

P-Test and Z-Test in Windows SAS

Reply
N/A
Posts: 0

P-Test and Z-Test in Windows SAS

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
Super Contributor
Posts: 281

Re: P-Test and Z-Test in Windows SAS

Posted in reply to deleted_user
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.
N/A
Posts: 0

Re: P-Test and Z-Test in Windows SAS

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.
N/A
Posts: 0

Re: P-Test and Z-Test in Windows SAS

Posted in reply to deleted_user
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
Super Contributor
Posts: 281

Re: P-Test and Z-Test in Windows SAS

Posted in reply to deleted_user
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.
Ask a Question
Discussion stats
  • 4 replies
  • 602 views
  • 0 likes
  • 2 in conversation