ABSTRACT

This chapter discusses the use of R package in linear regression with an example that uses the Arctic ice data. In the example, summary(linear.model.M) produces the information one should expect, including the coefficient, p-values, and R-squared. One of the many nice functions of R is its ability to interpret information. The function abline interprets linear.model.M and linear.model.S as lines and adds them to the graph. The chapter discusses multiple linear regression which works in essentially the same way as simple linear regression. The confidence and prediction intervals for given values of multiple linear regression are demonstrated using the R code.