Exercise

# Testing The Regression Model I

So we have established that we are testing our hypothesis whether giving people more money leads to them liking us more.

Remember how we used `lm()`

and `summary()`

before to see the R squared of our model? Well we're going to use these functions again to find our t-value, and associated p-value. No manual calculations necessary - pretty great, right?

The `lm()`

function takes the format `lm(response variable ~ predictor variable)`

(however of course you would write your own variable names here).

The `summary()`

function takes the object you would like a summary of as its first argument. In this case it's going to be your regression model.

Instructions

**100 XP**

- In your script, assign your regression model to the variable
`mod1`

using the function`lm()`

. - In your script, use the
`summary()`

function to find the summary of`mod1`

, and assing this to`sum1`

. - Hit 'Submit' and have a look at the output!