powered by
Plot the leverage points of a linear regression model.
leverageplot(model, index = NULL, labels = NULL)
The model to be plotted.
The index of the variable used for for the x-axis.
The labels of the instances.
require (datasets) data (trees) model = LINREG (trees [, -3], trees [, 3]) leverageplot (model)
Run the code above in your browser using DataLab