Home >Common Problem >What are the steps for spss heteroskedasticity test?
spss heteroskedasticity test steps: first save the residuals according to the regression results; then calculate the square of the residuals; finally draw a scatter plot of the squared residuals and "X", and make a weighted least squares method Just return.
First, you must save the residuals according to the regression results, calculate the square of the residuals, and then draw a scatter plot of the squared residuals and X.
Related recommendations: "FAQ"
The steps are as follows:
(1) During regression calculation, click [ in the regression main dialog box Save] button, select the [Unstandardized] option in [Residuals], and click [Continue] to return to the main dialog box. While outputting the results, the residuals will be saved as a new variable res_1.
(2) Calculate the square of the residual. Select [Transform] => [Compute], and enter the variable name of the residual square (such as e2) and the expression for calculating the residual square (such as res_1 **2) in the displayed dialog box. A new variable will be generated after clicking [OK].
(3) Using the weighted least squares method (WLS), the weight can be set to 1/|e|. Just do a weighted least squares regression.
The above is the detailed content of What are the steps for spss heteroskedasticity test?. For more information, please follow other related articles on the PHP Chinese website!