Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

This is for a homework that I'm supposed to do in SAS, but doing in R instead.

I want to perform an F-test for $H_0: \beta_i = 0$ for all $\beta_i$, all slopes equal to 0.

I have a linear model lm(salary ~ quality + experience + success) and can manually compute the F statistic from the ANOVA table and perform the test.

Is there a simpler way to do the F-test?

share|improve this question
5  
Aren't the F-statistic and its p-value reported on the last line of summary(lm(...))? – whuber Dec 14 '12 at 21:38
2  
you may also want to investigate the use of the anova function, which works on objects that lm returns... – Glen_b Dec 14 '12 at 21:56
@whuber You're right. Thanks. – brianto Dec 14 '12 at 22:58

closed as too localized by whuber Dec 14 '12 at 23:40

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.