You can add multiple variables as the same time by holding down the Ctrl key while you click on the variables in the Factors & Covariates list. To add a variable as a main effect (not an interaction between variables), click on the variable in the Factors & Covariates list, select "Main effects" under Build Term(s) Type, and then click on the arrow to move it into the Model box. In order to specify your own interaction terms, in the Model menu under "Specify Model," click on the button next to Custom.To specify the interaction terms that you want, click on the Model. The default settings will create interaction terms between all combinations of the fixed factors, but none between the covariates. Then move categorical (scale) variables into the Fixed Factor(s) field, and continuous numeric independent variables into the Covariate(s) field. Use the arrow button to move the dependent variable into the Dependent Variable field. Navigate to Analyze > General Linear Model > Univariate.Close the Chart Editor and you will see that the chart in the Output window now has the horizontal line. Then click Apply and the line will appear in your chart. This opens the Properties window from here, under the "Reference Line" tab, enter a 0 in the Position field. In the Chart Editor, click on Options > Y Axis Reference Line. To add a horizontal line at 0 after you've made this chart, double-click on the chart in the Output window to open up the Chart Editor.The scatterplot will be created along with the statistical output. You can make a scatterplot of the residuals and the predicted values of your regression by moving *ZRESID (standardized residuals) into the Y field, and *ZPRED (standardized predicted values) into the X field, then click Continue and OK. To check for heteroscedasticity, before running the linear regression click on the Plots.Use the arrow buttons to move your dependent and independent variables into their respective fields, then click OK. Navigate to Analyze > Regression > Linear.
0 Comments
Leave a Reply. |