plotResiduals
Syntax
Description
plotResiduals(
creates a histogram plot
of the censored linear regression model (mdl
)mdl
) residuals.
plotResiduals(
specifies additional options using one or more name-value arguments. For example, you can
specify the residual type and the graphical properties of residual data points.mdl
,plottype
,Name=Value
)
plotResiduals(
creates
the plot in the axes specified by ax
,___)ax
instead of the current axes,
using any of the input argument combinations in the previous syntaxes.
returns
graphics objects for the lines or patch in the plot. Use h
= plotResiduals(___)h
to modify
the properties of a specific line or patch after you create the plot. For a list of
properties, see Line Properties and Patch Properties.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Alternative Functionality
A CensoredLinearModel
object provides multiple plotting functions. After fitting a model, use plotPartialDependence
to understand the effect of a particular predictor. Use
plotSlice
to plot
slices through the prediction surface.
Version History
Introduced in R2025a