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 – ANOVA and the confidence intervals

The R functions anova and confint respectively help obtain the ANOVA table and confidence intervals from the lm objects. Here, we use them for the IO_lm regression object.

  1. Use the anova function on the IO_lm lm object to obtain the ANOVA table by using IO_anova <- anova(IO_lm).
  2. Display the ANOVA table by keying in IO_anova in the console.
  3. The 95 percent confidence intervals for the intercept and the No_of_IO variable is obtained by confint(IO_lm).

    The output in R is as follows:

    Time for action – ANOVA and the confidence intervals

    Figure 3: ANOVA and the confidence intervals for the simple linear regression model

The ANOVA table confirms that the variable ...

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