What’s the score?

Lab 4B

Directions: Follow along with the slides and answer the questions in red font in your journal.

Previously

Predictions using a line

make_predictions <- function(armspans) {
  ____ * armspans + ____
}

Make your predictions

____ <- mutate(____, predictions = ____(____))

Sums of differences

accuracy <- function(actual, predicted) {
  sum(____ - ____)
}
summarize(____, ____(____, ____))

Checking our work

On your own

____ <- mutate(____, predictions = predict(____))

The magic of lm()

add_line(intercept = ____, slope = ____)