Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

**Class: **LinearModel

Plot diagnostics of linear regression model

`plotDiagnostics(mdl)`

plotDiagnostics(mdl,plottype)

h = plotDiagnostics(___)

h = plotDiagnostics(mdl,plottype,Name,Value)

`plotDiagnostics(`

plots
diagnostics from the `mdl`

)`mdl`

linear model using the
leverage values.

`plotDiagnostics(`

plots
diagnostics in a plot of type `mdl`

,`plottype`

)`plottype`

.

returns
handles to the lines in the plot, using any of the previous syntaxes.`h`

= plotDiagnostics(___)

plots
with additional options specified by one or more `h`

= plotDiagnostics(`mdl`

,`plottype`

,`Name,Value`

)`Name,Value`

pair
arguments.

For many plots, the Data Cursor tool in the figure window displays the

*x*and*y*values for any data point, along with the observation name or number.

The `mdl.Diagnostics`

property contains the
information that `plotDiagnostics`

uses to create
plots.

[1] Neter, J., M. H. Kutner, C. J. Nachtsheim, and W. Wasserman. *Applied
Linear Statistical Models*, Fourth Edition. Irwin, Chicago,
1996.

Was this topic helpful?