Using a simple linear regression

You built a linear regression model by simply using the lm() function on your data. You also used the LINE approach to make sure that your model satisfied the assumptions of linear regression. Building SLRs is often straightforward, but it is very important that you know how to interpret the output.

Interpreting model output

There is a lot of information available within a linear regression model. You can see an expanded output by using the summary() function:


The following is the output:

lm(formula = revenues ~ marketing_total, data = adverts)
    Min      1Q  Median      3Q     Max 
-8.6197 -1.8963 -0.0006  2.1705  9.3689 
             Estimate Std. Error t value Pr(>|t|)    
(Intercept) 32.006696 0.635590 ...

Get Introduction to R for Business Intelligence now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.