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.

432 Performing Choice <strong>Modeling</strong> Chapter 16<br />

Transforming Data<br />

Figure 16.39 Partial Daganzo Travel Time Table for Three Alternatives<br />

Each choice number listed must first be converted to one of the travel mode names. This transformation is<br />

easily done by using the Choose function in the formula editor, as follows.<br />

• Create a new column labeled Choice Mode. Specify the modeling type as Nominal. Right-click on the<br />

Choice Mode column <strong>and</strong> select Formula.<br />

• Click on Conditional under the Functions (grouped) comm<strong>and</strong>, select Choose, <strong>and</strong> press the comma<br />

key twice to obtain additional arguments for the function.<br />

• Click on Choice for the Choose expression (expr), <strong>and</strong> double click on each clause entry box to enter<br />

“Subway”,” Bus”, <strong>and</strong> “Car” (with the quotation marks) as shown in Figure 16.40.<br />

Figure 16.40 Choose Function for Choice Mode Column of Daganzo Data<br />

The choice response is now in the correct format. Since each row contains a choice made by each subject,<br />

another column containing a sequence of numbers should be created to identify the subjects. This can be<br />

done by creating a column with the Subject label. Then, enter a 1 in the first row of the column, a 2 in the<br />

second row of the column. Finally, highlight the first <strong>and</strong> second rows of the column, right click, <strong>and</strong> select<br />

Fill > Continue sequence to end of table. A partial listing of the modified table is shown in Figure 16.41.<br />

Figure 16.41 Daganzo Data with New Choice Mode <strong>and</strong> Subject Columns<br />

In order to construct the Profile data, each alternative needs to be expressed in a separate row.

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

Saved successfully!

Ooh no, something went wrong!