2
$\begingroup$

CLICK HERE FOR THE PHOTO OF ANOVA TABLE!

I have the anova table like this and the question is asking me to find the p-value using R or otherwise, can someone help me with this? I'm totally struggling with this question.

$\endgroup$
1
  • 2
    $\begingroup$ have a look at ?pf $\endgroup$
    – user20650
    Oct 16, 2016 at 19:29

1 Answer 1

5
$\begingroup$

It should be as follows:

1-pf(171.5410/13.3074, 2, 325)

You get your F statistic from the ratio of MS-Group and MS-Error. Plugging in the degrees of freedom for numerator and denominator (i.e. 2 and 325 respectively) into F distribution, we get p-value as:

4.098518e-06

In other words, difference among means is statistically significant.

$\endgroup$
1
  • 1
    $\begingroup$ To get upper tail probabilities you should use lower.tail=FALSE with pf rather than doing 1-pf; it's considerably more accurate in the upper tail $\endgroup$
    – Glen_b
    Oct 17, 2016 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.