What’s the score?

Lab 4B

Directions: Follow along with the slides, completing the questions in blue on your computer, and answering the questions in red in your journal.

Space, Click, Right Arrow or swipe left to move to the next slide.

Previously

Predictions using a line

predict_height <- function(armspan) {
  ____ * armspan + ____
}

Make your predictions

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

Sums of differences

____ <- mutate(____, residual = ____ - ____)
summarize(____, sum(____))

Checking our work

summarize(____, mean((____)^2))

On your own

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

The magic of lm()

add_line(intercept = ____, slope = ____)