14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Estimates<br />

Example of Exp<strong>and</strong>ed Estimates<br />

To recreate the reports in Figure 3.6, follow the steps in “Example of a Prediction Expression” on page 65,<br />

except instead of selecting Show Prediction Expression, select Exp<strong>and</strong>ed Estimates.<br />

Figure 3.6 Comparison of Parameter Estimates <strong>and</strong> Exp<strong>and</strong>ed Estimates<br />

Notice that the coefficient for Drug(f) appears in the Exp<strong>and</strong>ed Estimates report.<br />

Statistical Details for Exp<strong>and</strong>ed Estimates<br />

When you have nominal terms in your model, the platform constructs a set of dummy columns to represent<br />

the levels in the classification. Full details are shown in the appendix “Statistical Details” on page 651 in the<br />

“Statistical Details” appendix. For n levels, there are n - 1 dummy columns. Each dummy variable is a<br />

zero-or-one indicator for a particular level, except for the last level, which is coded -1 for all dummy<br />

variables. The following table shows an example of the A1 <strong>and</strong> A2 dummy columns when column A has<br />

levels A1, A2, <strong>and</strong> A3.<br />

A A1 dummy A2 dummy<br />

A1 1 0<br />

A2 0 1<br />

A3 -1 -1<br />

These columns do not appear in the report, but they help conceptualize the fitting process. The parameter<br />

estimates are the coefficients fit to these columns. In this case, there are two, labeled A[A1] <strong>and</strong> A[A2]. This<br />

coding causes the parameter estimates to be interpreted as how much the response for each level differs from<br />

the average across all levels. Suppose, however, that you want the coefficient for the last level, A[A3]. The<br />

coefficient for the last level is the negative of the sum across the other levels, because the sum across all levels<br />

is constrained to be zero. Although many other codings are possible, this coding has proven to be practical<br />

<strong>and</strong> interpretable.

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

Saved successfully!

Ooh no, something went wrong!