October 2017
Beginner to intermediate
572 pages
26h 1m
English
To see more of the diagnostic plot function, you can use the help function to access further information:
> ?plot.lm
In order to discover whether there are points with large Cook's distance, one can use the cooks.distance function to compute the Cook's distance of each point, and analyze the distribution of distance through visualization:
> plot(cooks.distance(lmfit))

In this case, where the point on index 3 shows greater Cook's distance than other points, one can investigate whether this point might be an outlier.
Read now
Unlock full access