Learn R Programming

fdm2id (version 0.9.9)

leverageplot: Plot the leverage points of a linear regression model

Description

Plot the leverage points of a linear regression model.

Usage

leverageplot(model, index = NULL, labels = NULL)

Arguments

model

The model to be plotted.

index

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

labels

The labels of the instances.

Examples

Run this code
require (datasets)
data (trees)
model = LINREG (trees [, -3], trees [, 3])
leverageplot (model)

Run the code above in your browser using DataLab