leverageplot | R Documentation |
Plot the leverage points of a linear regression model.
leverageplot(model, index = NULL, labels = NULL)
model |
The model to be plotted. |
index |
The index of the variable used for for the x-axis. |
labels |
The labels of the instances. |
require (datasets)
data (trees)
model = LINREG (trees [, -3], trees [, 3])
leverageplot (model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.