Statistics Toolbox | ![]() ![]() |
Syntax
Description
rcoplot(r,rint)
displays an errorbar plot of the confidence intervals on the residuals from a regression. The residuals appear in the plot in case order. Inputs r
and rint
are outputs from the regress
function.
Example
X = [ones(10,1) (1:10)']; y = X * [10;1] + normrnd(0,0.1,10,1); [b,bint,r,rint] = regress(y,X,0.05); rcoplot(r,rint);
The figure shows a plot of the residuals with error bars showing 95% confidence intervals on the residuals. All the error bars pass through the zero line, indicating that there are no outliers in the data.
See Also
regress
![]() | raylstat | refcurve | ![]() |