14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

130 Fitting St<strong>and</strong>ard Least Squares Models Chapter 3<br />

Examples with Statistical Details<br />

Sometimes you can investigate the functional contribution of a covariate. For example, some transformation<br />

of the covariate might fit better. If you happen to have data where there are exact duplicate observations for<br />

the regressor effects, it is possible to partition the total error into two components. One component<br />

estimates error from the data where all the x values are the same. The other estimates error that can contain<br />

effects for unspecified functional forms of covariates, or interactions of nominal effects. This is the basis for<br />

a lack of fit test. If the lack of fit error is significant, then the fit model platform warns that there is some<br />

effect in your data not explained by your model. Note that there is no significant lack of fit error in this<br />

example, as seen by the large probability value of 0.7507.<br />

The covariate, x, has a substitution effect with respect to Drug. It accounts for much of the variation in the<br />

response previously accounted for by the Drug variable. Thus, even though the model is fit with much less<br />

error, the Drug effect is no longer significant. The effect previously observed in the main effects model now<br />

appears explainable to some extent in terms of the values of the covariate.<br />

The least squares means are now different from the ordinary mean because they are adjusted for the effect of<br />

x, the covariate, on the response, y. Now the least squares means are the predicted values that you expect for<br />

each of the three values of Drug, given that the covariate, x, is held at some constant value. The constant<br />

value is chosen for convenience to be the mean of the covariate, which is 10.7333.<br />

So, the prediction equation gives the least squares means as follows:<br />

fit equation:<br />

-2.696 - 1.185*Drug[a - f] - 1.0761*Drug[d - f] + 0.98718*x<br />

for a: -2.696 - 1.185*(1) -1.0761*(0) + 0.98718*(10.7333) = 6.71<br />

for d: -2.696 - 1.185*(0) -1.0761*(1) + 0.98718*(10.7333) = 6.82<br />

for f: -2.696 - 1.185*(-1) -1.0761*(-1) + 0.98718*(10.7333) = 10.16<br />

Figure 3.55 shows a leverage plot for each effect. Because the covariate is significant, the leverage values for<br />

Drug are dispersed somewhat from their least squares means.<br />

Figure 3.55 Comparison of Leverage Plots for Drug Test Data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!