O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

Step 1 computes the RMS error as defined--the square root of the mean squared errors. The dat$price - dat$pred parameter computes the vector of errors, and the code surrounding it computes the average of the squared errors and then finds the square root.

Step 2 generates the standard scatterplot and then adds on the 45-degree line.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required