Statistics Toolbox | ![]() ![]() |
Syntax
Description
rsmdemo
demonstrates robust regression and ordinary least squares regression on a sample dataset. The function creates a figure window containing a scatter plot of sample data vectors X
and Y
, along with two fitted lines calculated using least squares and the robust bisquare method. The bottom of the figure shows the equations of the lines and the estimated error standard deviations for each fit. If you use the left mouse button to select an point and move it to a new location, both fits will update. If you hold down the right mouse button over any point, the point will be labeled with the leverage of that point on the least squares fit, and the weight of that point in the robust fit.
rsmdemo(X,Y)
performs the same demonstration using the X
and Y
values that you specify.
Example
See The robustdemo Demo.
![]() | ridge | robustfit | ![]() |