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

I have some data for which I have calculated z-scores -does anyone know if there is a function or built-in format that will return the p-values?  It's data I have standardized, so I end up with just a number and a standard error, so I can't run it through any of the statistical procs.  I'm using v 9.4.

 

Thanks -

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0am6dtkvnr...

 

PROBNORM

 

But PROC TTEST can take statistics and do calculations. See the example in the documentation.

View solution in original post

4 REPLIES 4
Reeza
Super User

http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0am6dtkvnr...

 

PROBNORM

 

But PROC TTEST can take statistics and do calculations. See the example in the documentation.

mmwhite1
Fluorite | Level 6

Thanks!  PROBNORM is giving me values similar to those in the z-score table.

Rick_SAS
SAS Super FREQ

One-sided or two-sided? Use the CDF function. See "Four essential functions for statistical programmers."

 

z = -1.96;

prob = 2 * cdf("Normal", z);  /* two-sided when z < 0 */

z =  1.96;

prob = 2 * (1 - cdf("Normal", z));  /* two-sided when z > 0 */

mmwhite1
Fluorite | Level 6

One-tailed - so looks like I just drop the '2*'.  And thanks for the reference!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 9330 views
  • 5 likes
  • 3 in conversation