Some models have curves

Lab 4F

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.

Making models do yoga

Problems with lines

xyplot(____ ~ ____, data = ____)

Adding flexibility

Making bend-y models

movie_quad <- lm(____ ~ poly(____, 2), data = training)

Comparing lines and curves

xyplot(____ ~ ____, data = ____)
add_curve(____, col = "blue")
add_curve(____, col = "red")

On your own