October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to fit the polynomial regression model with lm:
> plot(Quartet$x, Quartet$y2)

> lmfit = lm(Quartet$y2~poly(Quartet$x,2))
> lines(sort(Quartet$x), lmfit$fit[order(Quartet$x)], col = "red")

Read now
Unlock full access