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.

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

Examples with Statistical Details<br />

– x 2i is the level of the second predictor variable in the i th trial<br />

– β 0 , β 1 , <strong>and</strong> β 2 are parameters for the intercept, the first predictor variable, <strong>and</strong> the second predictor<br />

variable, respectively<br />

– ε ι are the independent <strong>and</strong> normally distributed error terms in the i th trial<br />

As shown here, the first dummy variable denotes that Drug=a contributes a value 1 <strong>and</strong> Drug=f contributes<br />

a value –1 to the dummy variable:<br />

1 a<br />

x 1i<br />

= 0 d<br />

–1 f<br />

The second dummy variable is given the following values:<br />

0 a<br />

x 2i<br />

= 1 d<br />

–1 f<br />

The last level does not need a dummy variable because in this model, its level is found by subtracting all the<br />

other parameters. Therefore, the coefficients sum to zero across all the levels.<br />

The estimates of the means for the three levels in terms of this parameterization are as follows:<br />

μ 1<br />

= β 0<br />

+ β 1<br />

μ 2<br />

= β 0<br />

+ β 2<br />

μ 3<br />

= β 0<br />

– β 1<br />

– β 2<br />

Solving for β i yields the following:<br />

( μ 1<br />

+ μ 2<br />

+ μ 3<br />

)<br />

β 0<br />

= ----------------------------------- = μ<br />

3<br />

(the average over levels)<br />

β 1<br />

= μ 1<br />

– μ<br />

β 2<br />

= μ 2<br />

– μ<br />

β 3<br />

= β 1<br />

– β 2<br />

= μ 3<br />

– μ<br />

Therefore, if regressor variables are coded as indicators for each level minus the indicator for the last level,<br />

then the parameter for a level is interpreted as the difference between that level’s response <strong>and</strong> the average<br />

response across all levels. See the appendix “Statistical Details” on page 651 for additional information about<br />

the interpretation of the parameters for nominal factors.<br />

Figure 3.52 shows the Parameter Estimates <strong>and</strong> the Effect Tests reports from the one-way analysis of the<br />

drug data. Figure 3.1, at the beginning of the chapter, shows the Least Squares Means report <strong>and</strong> LS Means<br />

Plot for the Drug effect.

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

Saved successfully!

Ooh no, something went wrong!