powered by
Plot the Cook's distance of a linear regression model.
cookplot(model, index = NULL)
The model to be plotted.
The index of the variable used for for the x-axis.
# NOT RUN { require (datasets) data (trees) model = LINREG (trees [, -3], trees [, 3]) cookplot (model) # }
Run the code above in your browser using DataLab