## Calculation of p-Values out auf t-statistic values

Solved
Occasional Contributor
Posts: 9

# Calculation of p-Values out auf t-statistic values

Dear SAS-Community,

I estimated regression coefficients their standard error and the corresponding t-statistic.

Is there a possibility in SAS to calculate the p-value out of the given values? (Comparable to "TDIST" in Excel?)

Thank you very much!

Holger

Accepted Solutions
Solution
‎07-23-2013 03:57 AM
Regular Contributor
Posts: 151

## Re: Calculation of p-Values out auf t-statistic values

The TDIST equivalent function in SAS is PROBT (or more precisely 1-PROBT)

All Replies
Solution
‎07-23-2013 03:57 AM
Regular Contributor
Posts: 151

## Re: Calculation of p-Values out auf t-statistic values

The TDIST equivalent function in SAS is PROBT (or more precisely 1-PROBT)

SAS Super FREQ
Posts: 3,839

## Re: Calculation of p-Values out auf t-statistic values

PROBT is an older function. Use the CDF function instead, like this:

prob = 1 - CDF("T", x, df);

For reasos why you should use CDF instead of PROBT, see reasons 4-6 of this article: Six reasons you should stop using the RANUNI function to generate random numbers - The DO Loop

🔒 This topic is solved and locked.