O'Reilly logo

R Statistical Application Development by Example Beginner's Guide by Prabhanjan Narayanachar Tattar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – the ANOVA and confidence intervals for the multiple linear regression model

The use of anova and confint extend in a similar way as lm is used for simple and multiple linear regression models.

  1. The ANOVA table for the multiple regression model is obtained in the same way as for the simple regression model, after all we are dealing with the object of class lm: gasoline_anova<-anova(gasoline_lm).
  2. The confidence intervals for the independent variables are obtained by using confint(gasoline_lm).

    The R output is given as follows:

    Time for action – the ANOVA and confidence intervals for the multiple linear regression model

    Figure 8: The ANOVA and confidence intervals for the multiple linear regression model

Note the difference between ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required