Main Content

How to Plot Residuals at the Command Line

The following table summarizes commands that generate residual-analysis plots for linear and nonlinear models. For detailed information about this command, see the corresponding reference page.

Note

Apply pe and resid to one model at a time.

CommandDescriptionExample
pe

Computes and plots model prediction errors.

To plot the prediction errors for the model model using data data, type the following command:

pe(model,data)
resid

Performs whiteness and independence tests on model residuals, or prediction errors. Uses validation data input as model input.

To plot residual correlations for the model model using data data, type the following command:

resid(data,model)

Related Examples

More About