BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
chchao
Calcite | Level 5
Dear all,
From F table, could find the F(7,10),0.05=3.14, but SAS output (see the bottom of picture) Pr> F(=3.65) = 0.0639. There was something wrong ?

* SAS code;
data unequal_var; input disease $ time @@; cards; A 36 A 32 A 24 A 35 A 26 A 28 A 32 A 33 A 34 A 29 A 32 B 35 B 24 B 13 B 27 B 22 B 18 B 31 B 30 ; proc ttest; class disease; run;

34128.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @chchao and welcome to the SAS Support Communities!

 

Everything is correct here (as usual). The keyword is "Folded F" -- which means that a factor 2 comes into play in order to perform a two-tailed test. The formula can be found in section "Two-Independent-Sample Design" of the PROC TTEST documentation. To reproduce the p-value (0.0639) with SAS functions you can use PROBF or CDF¹: p=2*(1-probf(230/63, 7, 10))=2*(1-cdf('F', 230/63, 7, 10)). (230/63 is the exact F value 3.65079...)

 

¹ Addendum: ... or SDF: 2*(sdf('F', 230/63, 7, 10))

View solution in original post

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hello @chchao and welcome to the SAS Support Communities!

 

Everything is correct here (as usual). The keyword is "Folded F" -- which means that a factor 2 comes into play in order to perform a two-tailed test. The formula can be found in section "Two-Independent-Sample Design" of the PROC TTEST documentation. To reproduce the p-value (0.0639) with SAS functions you can use PROBF or CDF¹: p=2*(1-probf(230/63, 7, 10))=2*(1-cdf('F', 230/63, 7, 10)). (230/63 is the exact F value 3.65079...)

 

¹ Addendum: ... or SDF: 2*(sdf('F', 230/63, 7, 10))

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1187 views
  • 1 like
  • 2 in conversation