In structural equation modeling, residual analysis has been developed traditionally for the elements in the moment matrices such as mean vector and covariance matrix. See the section Residuals in the Moment Matrices for a detailed description of this type of residual. In fact, almost all fit indices in the field were developed more or less based on measuring the overall magnitude of the residuals in the moment matrices. See the section Assessment of Fit for examples of fit indices such as standardized root mean square residual (SRMR), adjusted goodnessoffit index (AGFI), and so on.
However, recent research advances make it possible to study caselevel or observationallevel residuals. Although caselevel residuals have not yet been used to assess overall model fit, they are quite useful as model diagnostic tools. This section describes how caselevel residuals are computed and applied to the detection of outliers, the identification of leverage observations, and various residual diagnostics.
The main difficulty of caselevel residual analysis in general structural equation modeling is the presence of latent variables in the model. Another difficulty is the involvement of multivariate responses. Both are nonissues in multiple regression analysis because there is no latent variable and there is only a single response variable. Hence, a good starting point for this section is to explain how PROC CALIS handles these two issues in general structural equation modeling. The residual diagnostic techniques described in the following draw heavily from Yuan and Hayashi (2010).
Latent variables in models are not observed, and their values must be predicted from the data. Although the indeterminacy of factor scores is a wellknown issue, it does not mean that factor scores cannot be reasonably derived or predicted from the observed data. One of the factor score estimation methods is Bartlett’s method. Suppose for a factor model that represents a factor matrix and represents a error covariance matrix, where p is the number of manifest variables and m is the number of factors. Bartlett’s factor scores are defined by the formula
where represents an random vector of factors and represents a random vector of manifest variables. Yuan and Hayashi (2010) generalize Bartlett’s formulas to a certain class of structural equation models. Essentially, they provide formulas that the quantities and are computable functions from the parameter estimates of the structural equation models. PROC CALIS adopts their formulas with an extension due to Yung and Yuan (2013). With the estimation of factor scores, residuals in structural equation models can be computed as if all values of factors are present. Hence, caselevel residual analysis becomes possible.
With the possibility of a multivariate residual vector in structural equation models, a summary measure for the overall magnitude of the residuals in observations is needed. Yuan and Hayashi (2010) consider the Mahalanobis distance (Mdistance) of caselevel residuals. For observation i with residual vector of dimension , the residual Mdistance of observation i is defined as
where () is a matrix that reduces to independent components, q is the number of independent factors to be estimated in the structural equation model, and is the covariance matrix of . The reduction of the residual vector into independent components is necessary when the number of factors q is not zero in the model. For , is not invertible and cannot be used in computing the Mdistances for residuals. Hence, the covariance matrix of independent components is used instead. In practice, and are evaluated at the estimated parameter values. can be computed after is estimated.
Because the residual Mdistance is nonnegative and is a distance measure, the interpretation of is straightforward—the larger it is, the farther away observation i is from the origin of the residuals. Therefore, the residual Mdistance can be used to detect outliers. The criterion for defining outliers is based on a selection of an level for the residual Mdistance distribution. Under the multivariate normality distribution of the residuals, Yuan and Hayashi (2010) find that is distributed as a variate (that is, the square root of the corresponding variate), where is the degrees of freedom of the distribution. Therefore, a probabilitybased criterion for outlier detection can be used. An observation is an outlier according to the level criterion if its residual Mdistance is located within the upper region of the distribution. Mathematically, an observation with satisfying the following criterion is an outlier if
The larger the , the more liberal the criterion for detecting outliers. By default, PROC CALIS sets to 0.01. You can override this value by using the ALPHAOUT= option.
Leverage observations are those with large Mdistances in the exogenous variables of the model. For example, in the context of a confirmatory factor model, Yuan and Hayashi (2010) define the Mdistance of exogenous latent factors by the formula
where is the Bartlett’s factor scores for observation i and is the covariance matrix of the factor scores. See Yuan and Hayashi (2010) for the formulas for and . PROC CALIS uses a more general formula to compute the Mdistance of exogenous observed variables and latent variables in structural equation models. That is, with exogenous variables , the leverage Mdistance is computed as
where is the covariance matrix of the exogenous variables. Leverage observations are those judged to have large leverage Mdistances.
As with outlier detection, you need to set a criterion for declaring leverage observations. Specifically, an observation with satisfying the following criterion is a leverage observation (or leverage point):
where is the square root of the variate, with c being the dimension of . The larger the , the more liberal the criterion for declaring leverage observations. The default value is 0.01. You can override this value by using the ALPHALEV= option.
Unlike the outliers that are usually judged as undesirable in models, leverage observations might or might not be bad for model estimation. Simply stated, a leverage observation is bad if it is also an outlier according to its residual Mdistance value . Otherwise, it is a "good" leverage observation and should not be removed in model estimation.
Caselevel residuals analysis can be very useful in detecting outliers, anomalies in residual distributions, and nonlinear functional relationships. All these techniques are graphical in nature and can be found in most textbooks in regression analysis (see, for example, Belsley, Kuh, and Welsch 1980). PROC CALIS provides these graphical analyses in the context of structural equation modeling. However, because PROC CALIS deals with multivariate responses and predictors in general, in some residual analysis the residuals are measured in terms of Mdistances, which are always positive. PROC CALIS can produce the following graphical plots (with their ODS graph names in parentheses) for residual diagnostics:
Residual histogram (CaseResidualHistogram): the distribution of residual Mdistances is shown as a histogram. The residual Mdistances are theoretically distributed as a variate. Use the PLOTS= CRESHIST option to request this plot.
Residual by leverage plot (ResidualByLeverage): the observations are plotted in a twodimensional space according to their Mdistances for residuals and leverages. Criteria for classifying outliers and leverage observations are shown in the plot so that outliers and leverage observations are located in welldefined regions of the twodimensional space. Use the PLOTS= RESBYLEV option to request this plot.
Residual by predicted values (ResidualByPredicted): the residuals (not the Mdistances) of a dependent observed variable are plotted against the predicted values. This is also called the residual on fit plot. If the relationship of the dependent variable to the predictors is truly linear in the model, the residuals should be randomly dispersed in the plot. If the residuals show some systematic pattern with the predicted values, unexplained nonlinear relationships of the dependent observed variable with other variables or heteroscedasticity of error variance might exist. Use the PLOTS= RESBYPRED option to request this plot.
Residual by quantile plot or QQ plot (ResidualByQuantile): the residual Mdistances are plotted against their theoretical quantiles. Observations that depart significantly from the theoretical line (with slope=1) are problematic observations. Use the PLOTS= QQPLOT option to request this plot.
Residual percentile by theoretical percentile plot or PP plot (ResPercentileByExpPercentile): the observed residual Mdistance percentiles are plotted against the theoretical percentiles. Observations that depart significantly from the theoretical line (with slope=1) are problematic observations. Use the PLOTS= PPPLOT option to request this plot.
With the presence of multiple outliers in a data set, estimation might suffer from the socalled masking effect. This problem refers to the fact that some prominent outliers in the data might have biased the estimation so that usual residual diagnostic tools might fail to detect some less prominent outliers. As a result, subsequent analyses that are based on the data set with outliers removed might actually not be free from the effects of the outliers.
Robust estimation deals with the outliers differently. Instead of relying on diagnostic tools for detection and removal of outliers, robust methods downweight the outliers during the estimation so that the undesirable outlier effect on estimation is minimized effectively. No outliers need to be removed during or after the robust estimation. Hence, the masking effect is not an issue. In addition, with the use of robust estimation, residual diagnostics for the purpose of outlier removal become a redundant concept. In such a scenario, outlier diagnostics are more important for the purpose of identification than for removal. You can use the ROBUST=RES option (or the default ROBUST option) to downweight the outliers during model estimation.
Similarly, detecting leverage observations might also suffer from the masking effect. That is, some leverage observations might not be detected if the diagnostic results are based on model estimation that includes the leverage observations themselves. Unfortunately, the ROBUST=RES option downweights only the residual outliers and does not downweight the leverage observations during estimation. However, the ROBUST=SAT option does downweight outlying observations in all variable dimensions, and hence it could be used if the masking effect of leverage observations is a concern.
Following the recommendation by Yuan and Hayashi (2010), PROC CALIS uses an eclectic approach to compute the residual and leverage Mdistances. That is, when a robust estimation is requested (using either the ROBUST=SAT or ROBUST=RES option) with caselevel residual analysis (using the RESIDUAL option), the residual Mdistances are computed from the robust estimation results that downweight the model outliers only (that is, the procedure invoked by the ROBUST=RES(E) or RES(F) option); but the leverage Mdistances are computed from the robust estimation results that downweight the outlying observations in all variable dimensions (that is, the procedure invoked by the ROBUST=SAT option). Consequently, both the residual Mdistances and the leverage Mdistances calculated from this eclectic approach are free from the respective masking effects—and this is true for any robust estimation methods implemented in PROC CALIS.
It is important to note that this eclectic approach applies only to the computations of the residual and leverage Mdistances. The parameter estimates, fit statistics, and the caselevel residuals that are displayed in the residual on fit plots are still obtained from the specific robust method requested. Table 29.7 summarizes the robust methods that PROC CALIS uses to compute the parameter estimates, fit statistics, caselevel residuals, and residual and leverage Mdistances with different robust options.
Table 29.7: Robust Methods for the Computations of Various Results
Robust Option Specified 




Estimates 
ROBUST=SAT 
ROBUST=RES(E) 
ROBUST=RES(F) 

Model fit 
ROBUST=SAT 
ROBUST=RES(E) 
ROBUST=RES(F) 

Caselevel residuals 
ROBUST=SAT 
ROBUST=RES(E) 
ROBUST=RES(F) 

Residual Mdistances 
ROBUST=RES(E) 
ROBUST=RES(E) 
ROBUST=RES(F) 

Leverage Mdistances 
ROBUST=SAT 
ROBUST=SAT 
ROBUST=SAT 
One important implication from this table is that ROBUST=SAT and ROBUST=RES(E) lead to the same residual and leverage diagnostic results, which are all free from masking effects.
In conclusion, even though outlier removal is unnecessary with robust estimation, caselevel residual diagnostics are still useful for identifying outliers and leverage observations. Needless to say, other residual diagnostics such as residual Mdistance distribution, QQ plots, PP plots, and residual on fit plots are useful whether you use robust estimation or not.