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 4 Fitting Stepwise Regression Models 147<br />

Using the Make Model Comm<strong>and</strong> for Hierarchical Terms<br />

• The method first splits Position into two groups with the term Position2{wr&db&o&lb&te–ki&l}. One<br />

group (the slower group) consists of the wide receivers (wr), defensive backs (db), offensive backs (o),<br />

linebackers (lb), <strong>and</strong> tight ends (te). The other group (the faster group) is the kickers (ki), <strong>and</strong> linemen<br />

(l), which ultimately split as Position2{ki-l}.<br />

• The next split subdivides the slower group into wide receivers (wr), defensive backs (db), <strong>and</strong> offensive<br />

backs(o) versus linebackers (lb) <strong>and</strong> tight ends (te), shown as Position2{wr&db&o–lb&te}. The<br />

linebackers (lb) <strong>and</strong> tight ends split (te) to form Position2{lb–te}.<br />

• The slower group divides again giving Position2{wr&db-o}, wide receivers (wr) <strong>and</strong> defensive backs (db)<br />

versus offensive backs (o).<br />

• The last subdivision is the wide receivers (wr) <strong>and</strong> defensive backs (db), Position2{wr–db}.<br />

These terms can be illustrated by the tree hierarchy shown at the top in Figure 4.12.<br />

Figure 4.12 Tree Structure of Terms <strong>and</strong> Corresponding Current Estimates Table<br />

Using the default Combine rule for terms to enter a model or the Restrict rule, a term cannot enter the<br />

model unless all the terms above it in the hierarchy have been entered. Therefore, it is simple to bring in the<br />

term Position2{wr&db&o&lb&te-ki&l} because there is nothing above it in the hierarchy. But to enter<br />

Position2{lb-te} requires that the two other terms above it in the hierarchy are entered:<br />

Position2{wr&db&o-lb&te}, <strong>and</strong> Position2{wr&db&o&lb&te-ki&l}.<br />

Reasons to choose a hierarchical coding include:<br />

• The hierarchy leads to natural stepping rules.<br />

• The groupings that make the greatest initial separation enter the model early.<br />

Using the Make Model Comm<strong>and</strong> for Hierarchical Terms<br />

If you have a model with nominal or ordinal terms, when you click Make Model or Run Model, the Fit<br />

Model platform creates a new set of columns in the data table. The model appears in a new Fit Model<br />

window for the response variable. The next example uses the Hotdogs2 sample data to illustrate how<br />

Stepwise constructs a model with hierarchical effects.

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

Saved successfully!

Ooh no, something went wrong!