Learn R Programming

fdm2id (version 0.9.5)

cookplot: Plot the Cook's distance of a linear regression model

Description

Plot the Cook's distance of a linear regression model.

Usage

cookplot(model, index = NULL)

Arguments

model

The model to be plotted.

index

The index of the variable used for for the x-axis.

Examples

Run this code
# NOT RUN {
require (datasets)
data (trees)
model = LINREG (trees [, -3], trees [, 3])
cookplot (model)
# }

Run the code above in your browser using DataLab