Example of Fit General Linear Model

An electronics design engineer studies the effect of operating temperature and three types of face-plate glass on the light output of an oscilloscope tube.

To study the effect of temperature, glass type, and the interaction between these two factors, the engineer uses a general linear model.

  1. Open the sample data, LightOutput.MTW.
  2. Choose Stat > ANOVA > General Linear Model > Fit General Linear Model.
  3. In Responses, enter LightOutput.
  4. In Factors, enter GlassType.
  5. In Covariates, enter Temperature.
  6. Click Model.
  7. In Factors and covariates, select GlassType and Temperature.
  8. To the right of Interactions through order, select 2, and click Add.
  9. In Factors and covariates, select Temperature.
  10. To the right of Terms through order, select 2, and click Add.
  11. In Factors and covariates, select GlassType and, in Terms in the model, select Temperature*Temperature.
  12. To the right of Cross factors, covariates, and terms in the model, click Add.
  13. Click OK in each dialog.

Interpret the results

In the Analysis of Variance table, the p-values for all of the terms are 0.000. Because the p-values are less than the significance level of 0.05, the engineer can conclude that the effects are statistically significant.

The R2 value shows that the model explains 99.73% of the variance in light output, which indicates that the model fits the data extremely well.

The VIFs are very high. VIF values that are greater than 5–10 suggest that the regression coefficients are poorly estimated due to severe multicollinearity. In this case, the VIFs are high because of the higher-order terms. Higher-order terms are correlated with main effect terms because the high-order tems also include the main effects terms. To reduce the VIFs, you can standardize the covariates in the Coding sub-dialog box.

Observations with large standardized residuals or large leverage values are flagged. In this example, two values have standardized residuals whose absolute values are greater than 2. You should investigate unusual observations because they can produce misleading results.

General Linear Model: LightOutput versus Temperature, GlassType

Method

Factor coding(-1, 0, +1)

Factor Information

FactorTypeLevelsValues
GlassTypeFixed31, 2, 3

Analysis of Variance

SourceDFAdj SSAdj MSF-ValueP-Value
  Temperature1262884262884719.210.000
  GlassType2414162070856.650.000
  Temperature*Temperature1190579190579521.390.000
  Temperature*GlassType2511262556369.940.000
  Temperature*Temperature*GlassType2643743218788.060.000
Error186579366   
Total262418330     

Model Summary

SR-sqR-sq(adj)R-sq(pred)
19.118599.73%99.61%99.39%

Coefficients

TermCoefSE CoefT-ValueP-ValueVIF
Constant-4969191-25.970.000 
Temperature83.873.1326.820.000301.00
GlassType         
  113232714.890.0003604.00
  215542715.740.0003604.00
Temperature*Temperature-0.28520.0125-22.830.000301.00
Temperature*GlassType         
  1-24.404.42-5.520.00015451.33
  2-27.874.42-6.300.00015451.33
Temperature*Temperature*GlassType         
  10.11240.01776.360.0004354.00
  20.12200.01776.910.0004354.00

Regression Equation

GlassType
1LightOutput=-3646 + 59.47 Temperature - 0.1728 Temperature*Temperature
       
2LightOutput=-3415 + 56.00 Temperature - 0.1632 Temperature*Temperature
       
3LightOutput=-7845 + 136.13 Temperature - 0.5195 Temperature*Temperature

Fits and Diagnostics for Unusual Observations

ObsLightOutputFitResidStd Resid
111070.01035.035.02.24R
171000.01035.0-35.0-2.24R
R  Large residual