Computes residual analysis data for model diagnostics.
The residuals are defined as . The mean and sample standard deviation (using in the denominator) of the residuals are computed, and the standardized residuals are then . If the standard deviation is zero (or only a single observation is provided), the standard deviation and standardized residuals are reported as zero.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(doe_model), | intent(in) | :: | mdl |
The fitted DOE model. |
||
| real(kind=real64), | intent(in), | dimension(:,:) | :: | x |
The M-by-N matrix containing the M values of each of the N factors at which to evaluate the model. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | y |
The M-element array containing the observed responses. This array must have the same number of rows as x. |
A doe_residuals object containing the observed values, predicted values, residuals, standardized residuals, and the residual mean and standard deviation.