Multidimensional Scaling
Beverage Preference Data


dm "output;clear;log;clear";
****************************************************************
* Title: Multidimensional Scaling Of Beverages Data Set.       *
* Ref: Adapted from the CRSPPLOT macro of Warren Kuhfeld.      *
*      Warren F. Kuhfeld. 1994. Graphical Scatterplots of      *
*      Labeled Points, Observations, 4th Quarter, SAS          *
*      Institute Inc., Cary, NC.                               *
*                                                              *
* 51 subjects were asked to rate the (dis)similarity among 22  *
* beverages. Not all pairs of beverages were rated by each     *
* subject. Additional ratings of qualities of the beverages    *
* are later included in the graphical results.                 *
****************************************************************;
Options NoDate LS=80 PS=55 PageNo=1
        FORMCHAR='|----|+|---+=|-/\<>*';

GOptions Device=Win TargetDevice=IMGJPEG
   CText=Black HText=1 FText=SwissX
   CTitle=Black HTitle=1 FTitle=SwissX
   CBack=White Colors=(Black) NoPrompt;

Filename PlotIt "plotit.sas";
%Include Plotit / NoSource;
Title1 'Multidimensional Scaling of Beverages';

Data Dissim;
   Do i = 1 to 3; Drop i;
      Input   (coke     orangeso lkoolaid milk     hottea   icetea
               hotcofee icecofee water    applejui grapejui rum
               beer     wine     scotch   postum   sevenup  drpepper
               lemonade pepsicol orangecr v8juice) (1.) @@;
      Output;
   End;
   Input;
DataLines;
.8...5...4...8...2....8.3...8...5...9...2....3.9...6...9...8...5..
..9.9...7...9...8...8....9.6...6...8...4...75...6.5...6...9...4...
.8...5.6...8...2...8....6...6.5...5...8...8....7...5.8...8...8...8
4...6...8.6...9...5....5...6...6.9...8...5....9...8...9.5...9...9.
...9...5...5.7...9...98...8...8...7.6...6....9...9...9...6.8...9..
..8...2...8...8.6...8....8...8...9...6.4...82...4...8...9...4.7...
.2...4...5...6...7.7....5...8...5...9...7.7....8...8...9...8...7.8
....7...8...9...8...8....9...7...9...5...2......7...5...9...3...1.
.....6...4...8...5...49.....7...7...9...6....7.....5...8.......4..
..6.....3...9...5...4....7.....7...8...7...77...5.....9...7...7...
.5...3.....9...5...5....4...7.....9...6...3....7...9.....3...6...5
9...8...9.....1...8....9...9...9.....9...9....8...8...3.....7...7.
...9...7...1.....9...85.......5...9.....8....3...5...6...7.....6..
..5...7...6...9.....6....6...7...8...8.....52...4...5...9...6.....
.1...4...3...7...6......4...7...5...8...5......8...4...5...4...1..
....8...5...4...4...1......5...3...6...6...68.....8...8...9...8...
.8.....7...8...7...7....5.....4...5...5...5....8.....9...9...7...8
4...7.....8...7...8....5...4.....5...6...6....3...9.....5...5...3.
...8...8.....3...5...75...8...5.....5...6....4...5...5.....9...4..
..6...9...3.....7...7....9...7...5.....5...84...7...6...9.....8...
.4...5...5...7.....4....6...7...5...5.....5....8...8...6...8.....8
1...7...6...4...4......1...5...3...7...5......6...8...7...8...8...
.5...4...7...6...5....5.3...7...6...8...3....3.9...7...8...7...5..
..9.9...7...8...8...8....9.2...6...7...6...84...2.7...5...8...6...
.7...7.2...7...2...7....7...2.7...7...7...7....7...7.7...7...6...7
7...6...7.3...7...5....6...5...3.7...7...6....8...7...7.4...6...7.
...8...7...4.6...6...76...7...7...6.6...7....8...8...7...6.8...7..
..7...2...7...8.6...7....8...7...6...6.6...85...6...6...6...6.7...
.3...6...5...7...7.6....5...7...6...7...6.5....8...7...7...7...5.6
....8...7...7...8...6...6...7...6...8...7......8...5...9...6...6..
6...4...2...8...5...3..8...7...8...8...8...8..4...4...6...9...5...
...7...4...8...3...6..7...4...4...7...5...6..5...4...6...6...6...7
..2...4...5...9...3......8...6...7...6...6..6...6...5...6...7...6.
.9...8...7...6...7...9..8...7...6...7...7......8...6...6...8...7..
8...9...9...7...8...9..6...3...6...8...5...7..5...5...7...8...5...
...8...6...7...5...3..7...5...3...7...5...3..6...6...6...7...3...8
..3...6...6...9...3......8...7...9...7...8......8...7...7...3...3.
.....5...3...4...4...8......5...3...8...2..........8...8...8...9..
8.......6...5...7...7..5.......6...6...6...8..5.......9...8...8...
...8.......4...2...5..7...6.......7...6...7..3...6.......2...5...6
..3...9.......8...4......8...4.......6...4..7...5...7.......6...7.
.4...6...2.......4...9..8...8...8.......4......8...2...6.......7..
3...7...6...6.......2..4...6...5...4.......7..2...8...4...4.......
...9...5...4...7......3...7...7...7...2......8...8...6...9...7....
....7...5...3...2...3......5...3...4...3...4......6...2...8...1...
.......6...8...6...6..7.......2...4...3...5..5.......5...5...4...3
..6.......6...8...6......6.......8...2...6..5...2.......3...3...4.
.3...5.......2...2...3..2...6.......8...3......8...8.......7...5..
3...4...3.......4...3..4...5...2.......4...3..8...8...8.......7...
...6...2...7.......7..2...3...3...4.......4..3...4...2...4.......4
..1...6...3...7..........6...6...5...7......3...5...4...3...4.....
.4...3...3...3...4......7...7...6...6...7......9...7...7...7...8..
7...8...6...7...6...6..9...7...7...8...8...9..8...5...7...7...7...
...7...7...7...6...8..7...5...8...7...7...7..7...7...7...7...6...8
..6...8...7...6...7......7...7...7...6...7..6...7...7...9...7...6.
.7...7...7...6...6...8..7...7...9...7...7......8...7...6...7...7..
6...7...6...7...7...7..7...6...6...7...6...8..6...7...7...7...6...
...8...6...6...6...7..7...7...7...7...6...6..8...8...7...7...7...7
..6...7...6...7...6......9...8...8...8...7...6...3...6...5........
6.2...8...7...3...3....2.9...8...2...9...5....9.8...7...9...8...9.
...8.2...4...5...3...93...2.4...5...3...3....8...4.2...9...7...5..
..8...2.8...8...6...6....7...8.2...2...9....6...4...2.3...2...2...
.7...5...3.8...9...3....2...9...8.5...3...4....9...8...5.6...9...9
5...5...2...6.4...2....3...3...2...4.9...6....9...7...9...9.9...9.
...8...6...3...9.6...9....3...9...9...6.5....3...3...2...2...5.4..
..5...5...3...6...4.5....9...6...4...9...5.9....9.......9...9...9.
....5...9...9...9...9......9.......9...8...9......8...8...9...2...
.......9...9...9...9..5.......7...9...8...9..9.......9...8...9...9
..8.......9...9...9......9.......9...8...8..9...7.......9...8...9.
.....9.......7...8...9..8...9.......6...7......9...9.......9...9..
9...9...9.......9...9..9...8...7.......8...9..9...9...6.......9...
...9...8...9.......9..9...8...8...9.......6..8...9...8...8.......8
..2...9...7...9..........9...8...9...9......9...9...9...9...6.....
.9...9...9...9...8......9...9...9...9...9......9...9...9...9...9..
9...9...9...9...6...6..9...9...9...9...9...9..9...8...9...9...9...
...9...9...9...8...9..9...8...9...9...9...9..9...9...9...9...9...9
..9...9...9...9...9......9...9...9...9...9..9...9...9...9...9...8.
.9...9...9...8...9...9..9...9...9...8...9......9...9...8...9...9..
9...9...9...8...9...9..9...8...9...9...9...9..6...9...9...9...6...
...9...9...9...9...8..9...9...9...9...6...7..9...9...9...9...8...9
..6...9...8...9...7......9...9...9...9...9.....9...9...7...7...4..
....9...9...9...6...1......9...3...4...5...89.....9...9...9...9...
.9.....5...5...5...8....9.....9...7...9...8....9.....9...9...8...9
9...5.....9...3...9....9...9.....9...9...9....3...9.....9...5...3.
...9...9.....3...4...87...5...9.....6...5....9...7...9.....8...9..
..4...9...3.....7...5....9...3...6.....9...97...5...9...8.....9...
.6...9...5...7.....9....5...8...4...9.....9....9...9...5...9.....9
4...8...9...9...9......1...8...3...5...9......8...9...8...9...9...
..8...7...7...9...8......9...9...9...8...8..8...8...7...8...7...8.
.9...8...9...9...9...9..8...7...9...9...9......8...9...9...7...9..
7...7...9...9...9...9..9...9...8...9...7...8..7...9...8...9...6...
...9...8...8...7...8..7...9...8...9...7...8..9...9...8...9...9...9
..8...9...9...9...8......9...9...9...9...9..9...9...9...9...9...9.
.8...7...7...9...7...8..7...9...7...9...6......9...7...9...7...5..
8...9...6...8...6...7..8...9...8...9...5...8..8...9...8...9...7...
...9...8...9...8...8......7...4...5...3...2......4...3...4...2...7
......7...3...7...4..........6...8...4...7..7.......4...6...6...5.
.4.......4...5...5...7..7.......8...6...6......6.......5...3...6..
4...4.......4...4...4..3...4.......3...4...4..3...8.......7...2...
...8...5.......6...4..5...6...4.......4...6..4...5...3.......6...7
..7...6...7.......6......4...3...6.......6..3...6...4...4.......2.
.2...5...4...6.......4..4...6...2...6..........7...6...4...6......
2...5...4...6...2......7...7...4...7...4.......9...4...8...6...1..
....9...7...8...6...2......7...5...9...8...89.....9...9...9...9...
.9.....7...7...4...8....7.....4...9...6...7....9.....9...9...9...8
4...7.....6...9...9....7...4.....9...7...9....5...9.....9...5...5.
...9...6.....7...3...58...7...9.....3...7....8...9...9.....9...9..
..9...9...7.....9...9....9...9...3.....9...96...4...7...9.....7...
.6...6...5...9.....5....8...9...3...9.....6....9...9...7...7.....7
1...8...9...9...5......2...7...5...9...6......8...8...5...9...7...
..4...3...4...6...3......7...7...6...7...1..4...7...3...4...1...1.
.7...7...6...7...9...7..7...3...6...6...5......7...4...7...3...3..
3...3...7...6...7...7..7...4...7...5...6...8..3...7...6...7...3...
...6...7...7...6...7..4...6...6...7...4...5..6...7...7...3...6...8
..4...6...7...4...7......7...5...3...8...2..6...6...7...4...7...7.
.7...3...6...8...7...7..1...7...4...7...3......9...6...6...7...3..
3...5...3...7...3...2..1...3...7...2...3...8..1...7...5...7...2...
...7...8...8...7...8....6...8...4...7...4......9...9...7...8...4..
6...7...4...6...3...2..9...8...5...8...8...8..7...2...8...8...6...
...8...3...5...3...6..8...2...6...7...8...9..9...3...8...7...3...7
..4...6...9...8...2......5...8...4...8...3..4...8...9...7...8...4.
.7...5...4...3...8...9..6...7...7...7...4......8...7...3...8...7..
7...8...8...7...8...9..8...3...8...8...7...9..3...8...8...8...2...
...8...3...8...7...4..4...6...2...4...2...4..4...6...3...7...4...7
..2...9...4...9...4......8...7...9...9...7...3...4...4...8...1....
3.2...7...3...9...1....2.5...4...8...7...1....5.7...3...8...8...9.
...7.5...4...8...6...44...5.5...3...8...1....7...5.5...8...3...7..
..4...5.8...6...4...2....3...8.7...8...5...54...4...7.1...8...3...
.3...3...1.9...6...5....8...8...9.2...5...8....8...6...2.2...7...8
8...8...8...2.2...6....9...8...8...2.9...7....7...3...6...9.7...6.
...8...4...5...7.1...71...6...5...7...1.3....1...1...3...6...3.2..
..1...7...5...7...2.2....9...2...8...6...2.7....4...5...8...7...7.
...9...7...8...7...1......9...6...9...2...1......4...4...6...6...8
9.....9...9...9...9....9.....6...8...2...9....4.....5...9...7...4.
...9.....9...9...9...97...6.....9...9...9....6...5.....9...8...7..
..4...9.....9...4...1....9...9.....2...4...88...8...9.....1...9...
.9...9...9.....9...7....6...9...2.....6...5....9...9...1.....9...9
7...2...8...9.....9....2...7...4...6.....5....6...9...4...9.....3.
...9...9...9...9.....81...9...7...7...5......1...4...1...5...3....
..8...9...8...9...8.......8...5...3...3...3......7...3...5...3...6
......8...3...7...2..........6...9...7...8..8.......6...6...7...7.
.7.......6...7...6...8..8.......8...8...6......6.......8...3...7..
5...6.......5...3...3..3...6.......2...4...5..3...8.......7...3...
...9...8.......9...3..3...6...5.......4...4..5...7...2.......4...5
..7...8...7.......6......7...3...9.......8..3...7...3...4.......3.
.3...6...4...4.......8..2...6...3...6..........8...7...3...8......
3...7...3...4...3......6...8...5...5...8......5...7...6...7...4...
...9...4...6...6...3..5...6...5...5...2...3..9...7...8...8...9...9
..6...1...7...7...5......7...3...5...4...3..7...1...7...7...7...7.
.4...3...6...7...5...8..5...7...6...7...4......8...6...7...7...6..
6...7...6...7...5...4..6...5...7...3...6...8..5...7...7...6...7...
...8...7...3...8...7..7...7...7...6...7...7..6...4...7...8...7...7
..2...7...5...7...3......9...5...6...7...3..4...5...4...7...3...3.
.3...3...6...7...3...8..3...7...4...7...3......9...8...8...7...8..
..7...8...7...4...6......9...8...8...7...6..7...8...4...5...3...2.
.9...7...8...8...9...4..8...2...8...8...7......7...3...7...3...6..
8...2...4...8...9...8..8...3...8...7...6...8..4...4...4...6...3...
...8...8...7...9...4..7...8...4...8...8...4..8...7...7...3...5...9
..5...8...8...4...7......8...7...3...6...7..4...8...6...4...7...9.
.7...3...9...6...8...8..3...9...8...7...5......9...6...5...8...1..
6...7...3...7...5...4..6...6...4...7...1...8..2...8...4...9...4...
...4...8...9...8...8.....9...7...7...6...1......7...5...6...4...1.
.....4...3...5...3...59.....7...8...9...8....7.....5...6...4...6..
..4.....5...5...4...5....7.....7...7...7...77...5.....7...8...7...
.5...5.....5...7...5....3...7.....4...3...3....8...7.....4...3...5
7...6...5.....2...7....6...5...4.....8...5....5...7...4.....4...5.
...9...8...2.....6...76...4...7...8.....8....4...4...3...4.....5..
..3...7...3...6.....3....8...7...7...8.....41...6...5...5...5.....
.1...5...3...5...3......5...7...5...7...4....8...6...5...3...6....
8.3...8...2...8...2....3.6...7...7...8...4....6.6...6...9...3...5.
...6.3...6...6...5...46...3.7...4...8...2....8...7.2...3...1...8..
..7...2.8...8...8...8....6...8.6...8...6...55...6...6.2...9...2...
.2...4...2.8...8...5....7...3...8.4...8...8....9...8...4.7...9...8
3...6...8...7.6...7....8...8...9...6.3...8....8...1...8...3.8...8.
...3...8...8...8.4...66...5...6...9...4.4....2...2...2...7...4.7..
..4...8...5...8...7.4....5...8...8...8...4.5....4...5...8...6...5.
.5...4...4...4...1....5.3...6...1...8...2....3.7...2...5...6...4..
..7.8...7...8...8...8....8.2...5...7...3...74...2.6...2...6...1...
.6...6.4...7...2...4....2...4.2...5...4...4....7...2.3...4...3...9
4...5...3.1...6...1....1...2...1.8...6...3....5...7...8.7...7...5.
...8...5...7.4...6...74...7...4...4.5...5....8...6...6...5.8...6..
..6...2...6...8.9...6....8...4...7...9.4...81...3...3...6...4.4...
.2...1...1...5...4.4....4...4...3...6...4.3....8...4...5...6...3.7
....7...9...7...8...7..8...5...7...4...5....8.5...7...4...6...4...
.5.6...5...7...4...4....6.3...8...8...4...6....3.2...7...9...4...4
5...2.6...5...7...3....7...6.2...........4....5...2.2...5...7...4.
...8...2.3...8...9...47...7...3.2...8...3....4...5...2.3...5...3..
..7.......3.2...6...9....8...5...2.2...6...64...9...8...2.3...7...
.6...7...8...3.4...7....4.......5...4.8...5....4...7...6...8.6...6
5...4...9...6...6.3....4...3...3...7...3.3....4...4...3...7...3.5.
...6...4...9...5...5.5....4...4...6...6...5.....8...5...4...2...2.
.....4...3...4...2...3......8...2...9...1..........3...7...5...4..
8.......5...6...6...5..4.......4...4...3...3..8.......9...8...8...
...3.......5...2...3..5...5.......4...5...4..3...4.......3...3...2
..2...9.......8...2......7...5.......9...5..4...6...4.......4...3.
.4...4...3.......5...4..9...8...8.......5......5...2...9.......9..
2...6...5...4.......2..2...3...3...5.......4..1...8...2...5.......
...4...3...5...9......2...5...4...3...2......3...3...2...4...4....
.4...6...7...7...3....4.3...9...2...8...5....3.6...5...6...7...3..
..6.4...4...6...7...7....4.2...8...7...7...96...2.5...6...5...4...
.9...5.2...7...1...9....5...2.3...5...7...4....4...3.7...3...4...9
7...8...7.3...6...4....2...6...3.7...4...2....6...7...7.6...6...6.
...6...5...6.6...6...57...7...3...6.6...5....8...5...6...6.6...6..
..7...1...4...6.4...6....7...7...6...4.5...63...7...4...6...5.5...
.5...4...4...5...5.4....3...9...2...6...4.4....7...4...6...6...4.8
....9...9...5...6...8..9...4...6...8...2....9.4...9...4...9...2...
.4.9...7...8...8...5....9.8...6...9...9...9....8.2...7...7...7...9
4...2.6...4...9...3....9...6.2...9...2...8....7...2.7...7...8...8.
...6...7.4...8...8...76...7...4.5...7...4....4...4...5.7...8...7..
..8...9...7.5...9...8....9...7...5.5...7...88...7...8...5.8...8...
.9...9...7...8.9...9....8...2...8...9.9...9....9...8...9...9.6...9
2...7...8...7...6.5....2...3...4...8...5.8....5...8...7...9...8.6.
...9...8...8...9...6.7....9...7...8...9...7....7...3...3...8...1..
....9...9...7...3...2......4...3...7...5...77.....9...8...9...8...
.9.....9...7...3...6....4.....2...4...4...7....9.....9...9...9...8
3...9.....7...9...4....9...2.....7...4...5....3...9.....3...3...3.
...8...7.....6...8...33...7...7.....7...3....7...4...3.....9...4..
..7...9...6.....8...8....9...9...7.....9...98...3...4...9.....8...
.3...4...3...8.....2....5...9...8...9.....2....8...4...3...8.....3
1...6...5...4...2......2...7...3...8...2......7...8...3...9...3...
....9...4...8...4...4......8...3...9...8...8......9...7...9...3...
.......8...9...6...7..9.......4...9...8...9..8.......7...9...5...7
..9.......9...7...9......8.......7...4...5..4...4.......6...5...7.
.3...7.......3...3...5..7...9.......9...5......9...7.......7...8..
8...9...6.......7...9..9...9...3.......9...8..9...7...9.......8...
...6...4...7.......9..4...8...5...7.......7..8...5...3...9.......8
..3...9...5...8..........7...5...8...9......4...9...7...9...7.....
.8...7...5...8...8.....6...3...6.......1....6.2...9...4...8...1...
.2.5...4...6.......3....5.3...9.......9...7....3.4...9.......9...9
3...4.5...8.......4....9...5.5................4...5.5...........4.
...9...5.3.......3...96...9...3.2.......3....4...8...2.........4..
..6...............................................................
.8.............................................9.............2...8
1...9...3.......2.2....1...4...3.......2.2....3.......4.......2.3.
...7...4...........3.4....9...9.......8...4..5...5...8...7...2....
5.5...8...5.......4....5.9...8.......9...7....9.7...9...9...7...9.
...7.6...8...7...8...95...6.7...7.......6....8...7.6.......6...8..
..8...6.9...9...7...7....9...9.7...9...5...78...8...7.5.......6...
.5...7...5.....9...7...........................9...9.....4...7...8
7...7...9...4.....7..................9........9...6...9...9.8...9.
...7...7.......8.2...82...8...5...7...2.6....4...6...6...7...6.7..
..7...8...7.......7.4....9...7.......9...4.8....9...7...8...8...8.
.8...6...7...7...3....8.6...9...7...8...3....6.9...7...8...7...4..
..9.8...7...9...8...7....8.5...7...8...4...46...5.8...6...7...2...
.9...8.9...7...4...7....7...9.5...7...7...4....7...5.6...6...7...3
7...7...6.3...8...7....7...6...3.9...8...6....8...7...9.7...8...8.
...9...7...7.6...6...97...8...6...6.7...7....8...7...8...7.8...8..
..7...4...8...8.7...9....8...7...8...7.7...73...4...7...6...7.6...
.3...2...7...7...6.7....4...7...6...8...7.7....7...4...8...9...7.8
....4...3...9...7...8..8...8...7...8...4....8.7...8...5...9.......
.7.9...7...9...9...8....9.9...7...9...9...9....9.5...8...9.......9
8...5.9...8...9...6....8...9.5...9...4...8....7...5.8...8...9...8.
...7...8.9...8...9...97...8...9.5...9...4....5...8...5.9...8...8..
..9...9...9.9...9...9....9...8...9.7...8...98...9...8...7.9...8...
.9...9...9...9.9...9....9...4...8...9.9...8....9...9...9...9.8...9
4.......9...8...8.7........6...4...8...7.8....8...8...8...9...8.8.
...9...8...9...8...8.9....9...9...9...9...9....9...........4...9..
....9...9.......5...1......4...6.......5...69.....9...8...9...9...
.9.....8...........9....4.....9.......9...5....9..................
....8.....9............9...9.....9.......9....6.............6...5.
...8...9.....9...9...7........9.....2......................9......
..........9.....9........9.......2..........4...........9.....9...
.5...9...6...9.....9....5.......9.........8....9...........9.....7
9...9...9.......9......1...5...5.......8......6.......7.......7...
.6...6...8...8...4....6.7...9...6...8...4....7.9...9...9...9...7..
..9.7...6...7...9...9....7.4...7...8...7...96...4.8...7...8...5...
.9...8.5...8...4...8....9...5.5...9...9...9....6...5.5...6...6...9
8...7...5.4...7...6....6...7...4.9...9...6....9...8...9.6...8...9.
...7...9...6.6...7...98...8...6...6.6...7....8...8...7...6.9...8..
..9...4...9...9.9...9....9...9...8...9.8...94...7...6...7...8.7...
.4...5...6...7...7.6....7...8...6...8...6.6....9...9...9...9...6.9
....9...9...9...9...9....8...8...6.......1......5...7...8...4...1.
.....6...2...7...2...68.....9...9...9...9....5.....9...9.......9..
..6.....4...9...7...3....9.....9...9...9...98...9.....8...8...9...
.7...4.....7.......6....2...9.....5...2...3....9...8.....4...3...9
6...9...7.....1...7....8...9...5.........9....7...9...4.....8...3.
...9...8...1.....8...9.......................4...7...2...8.....8..
..2...9...3...8.....6....9...9...7.........91...9...6...9...8.....
.1...3...3...3...6......6...9...9...9...9....3...6...3...3...1....
3.4...9...2...4...3....4.8...7...2...9...2....8.5...4...9...6...7.
...5.2...5...8...5...66...2.6...7...7...4....9...6.2...8...1...7..
..7...2.7...4...8...8....4...7.4...6...7...73...5...4.2...7...2...
.2...7...2.7...7...3....2...8...7.4...3...3....9...4...4.3...5...4
3...8...6...3.2...3....4...7...7...2.8...5....9...1...7...8.9...7.
...6...8...3...9.2...41...5...7...5...2.3....3...4...2...3...3.3..
..2...7...3...5...3.3....7...8...3...7...3.5....6...7...4...4...5.
.7...5...6...6...2....7.7...6...5...6...3....7.8...5...7...7...5..
..8.7...7...7...7...6....7.3...3...4...7...85...3.4...5...4...4...
.6...4.3...4...4...4....5...3.7...7...5...7....7...7.6...5...7...9
6...3...6.4...4...4....5...5...4.7...7...5....7...4...7.6...5...7.
...7...7...6.7...6...46...4...5...7.3...6....6...4...4...3.7...4..
..7...4...7...7.7...6....7...5...5...7.4...72...7...7...6...4.7...
.3...4...4...6...7.6....5...4...5...4...6.4....6...7...7...6...4.8
....8...9...4...7...8..7...7...4...6...2....7.2...9...3...9...7...
.2.8...6...8...6...6....8.8...6...6...8...9....8.3...7...8...4...8
7...3.4...5...6...4....9...4.7...8...3...3....6...7.7...7...7...8.
...6...7.4...8...7...54...7...4.2...7...2....3...5...2.8...8...3..
..8...8...8.4...7...7....6...7...4.4...8...56...8...8...4.5...3...
.9...6...7...5.9...8....6...3...8...9.9...9....8...7...7...9.5...4
2...4...7...8...5.5....7...4...2...3...5.7....6...3...3...8...7.3.
...9...8...7...9...3.5....8...5...5...4...5..2...6...6...8...2....
2.4...8...5...7...3....4.7...7...7...6...5....7.7...6...6...7...7.
...7.1...6...8...4...46...1.2...5...8...4....8...2.1...9...1...8..
..7...1.5...8...5...7....6...5.3...7...6...66...6...3.2...6...3...
.5...5...2.7...5...7....7...9...7.2...5...7....6...8...2.2...7...6
8...8...7...2.2...7....7...8...6...2.8...7....6...1...5...8.8...7.
...7...5...5...8.2...92...4...6...7...2.6....3...4...3...7...6.5..
..5...8...7...7...5.2....7...7...7...7...2.9....4...6...6...9...9.
..5...4...4...4...3......8...8...7...5...2..5...5...5...7...2...2.
.8...5...7...8...8...7..5...2...6...8...5......5...3...7...4...3..
4...2...7...8.......8..8...3...7...4...3...6..5...7...5...5...5...
...7...7...7...6...5..4...6...5...9...6...3..7...7...7...3...6...6
..7...8...9...3...8......8...4...3...8...7..4...8...5...3...7...7.
.5...4...6...8...6...7..2.......6...7...3......8...3...6...6...2..
3...5...5...8...3...2..2...3...5...7...2...5..2...8...3...7...2...
...7...6...6...7...5....7...5...4...7...6......8...7...8...8...2..
7...7...4...6...3...1..8...4...7...8...8...7..7...2...9...7...5...
...4...2...8...7...5..5...2...2...8...9...9..7...2...5...8...6...9
..4...2...7...9...2......7...5...8...8...6..4...9...7...5...4...2.
.8...8...8...3...8...9..6...8...5...4...5......8...8...3...9...6..
7...7...9...4...6...7..8...7...8...9...8...9..3...9...4...6...3...
...8...6...8...8...2..6...5...2...5...3...3..2...5...6...6...2...9
..1...9...2...7...3......7...9...9...9...9....7...9...4...8...8...
...9...8...7...8...6..7...8...3...9...2...3..9...7...7...8...2...7
..8...2...7...8...4......7...2...9...5...5..9...2...8...8...9...9.
.8...2...5...9...6...8..3...8...3...9...2......7...5...7...8...7..
4...7...3...9...9...6..7...9...7...5...9...8..9...8...9...8...6...
...8...9...5...9...8..8...8...9...8...8...8..8...5...8...9...8...6
..2...9...9...8...3......2...6...9...8...1..8...4...2...6...3...2.
.6...5...7...8...1...8..3...9...6...8...2......7...8...8...6...8..
...9...9...8...8...2......9...4...9...5...3......4...9...7...7...9
9.....9...9...9...9....9.....5...8...4...9....4.....3...9...7...6.
...9.....9...9...9...99...5.....9...9...9....4...3.....8...7...7..
..9...9.....7...5...6....9...9.....6...7...98...8...8.....7...8...
.9...9...7.....9...9....7...9...6.....9...8....9...9...7.....9...9
8...4...7...9.....9....5...7...5...9.....8....7...9...7...9.....9.
...9...9...8...9.....92...9...7...9...8......3...6...6...8...9....
..9...9...9...9...9.......6...2..................5...7............
......7......................3..............6.......4.............
.5.......3..............7.......2..............3.......9..........
2...4.......9..........7...3.......7..............2.......3...8...
.......9.......3..............9.......3..............7.......4....
..........3.......3..............3......................3.......8.
.............4.......6..........8...3.............................
................8......................6......7...6...6...7...7...
...9...8...7.......3..7...5...7...9...6...5..9...9...9...8...8...9
..5...3...6...7...3......9...2...8.......7..6...3...5...9...8...7.
.8...2...7...8...7...7..7...5...8...8...6......9...7...7.......6..
6...6...8...9...6...5..7...8...7...5...7...9..9...9...9...9...8...
...8...8...5.......8..7...7...8...9...8...9.......................
..6...8...6...8...6......8...7...7.......2..7...3...6...8...6...3.
.3...7...6...8...2...9..5...7...5...9...3......9...7...9.......9..
.4...4...9...7...1....4.3...9...9...7...3....3.9...9...7...9...5..
..9.9...7...9...9...9....9.2...9...5...9...64...2.7...5...4...5...
.9...7.2...9...1...9....9...2.4...5...7...9....7...4.4...7...9...7
9...9...4.3...6...4....9...5...3.3...9...9....7...9...3.3...6...6.
...9...5...3.7...9...97...5...7...7.4...9....7...4...6...4.9...8..
..9...1...9...9.9...9....9...7...6...9.4...61...9...9...9...4.6...
.3...5...4...9...6.7....5...9...9...8...7.5....9...9...6...9...5.4
....6...7...9...6...4..6...5...6...5...3....6.2...6...4...7...2...
.2.8...5...6.......5....8.5...3...5...5...5....5.2...5...4...3...7
5...2.4...5...5...5....6...4.2...7.......7....5...2.3...7...5...5.
...3...3.4...4...5...86...5...4.3...6...3....4...5...3.6.......4..
..6...7...6.6...6...5....5...7...6.3...5...55...4...4...3.6...5...
.7...5...6...6.....5...........................5...5...6.....7...5
3...3...5...5...7.4....2...5...3...5...4.7....5...7...4...5...7.6.
...5...5...5.......6.4....7...8...5...5...4....9...9...9.......2..
....9...9...9...6..........6...7...9...9...79.....9...9...9...9...
.9.........9.......9....6.....4...9...5...9....9.....9...9...9...9
9.........9...9...9....9...4.....9.......9....7...9.....9...7...9.
...9...9.....7...9...69...9...9.....9...9....9...9...9.........9..
..9...9...7.....9...9....9...9...9.....9...9......................
.6...5...7...9.....9....9...9...9...9.....9....9...9...9..........
2...9...9...9...9..........9...9...9...9......7...9...6...9.......
;

/*
Proc Print Data=Dissim;
Run;
*/

Proc MDS Data=Dissim Maxiter=40
/* PData */ PConfig PFinal
   Level=Interval Model=Indscal
   Dimens=2 Header Out=MDSout;
Run;

Data Ratings;
     Input    sweet    refresh  healthy  good     simptast alcohol
              watery   sodas    colas    juices   opaques /
              @1 _name_ $16. @26 label $16.;
     Label sweet    = 'Sweet'
           refresh  = 'Refreshing'
           healthy  = 'Healthy'
           good     = 'Good'
           simptast = 'Simple Tasting';
DataLines;
 2.84615 4.13461 7.50000 5.65385 5.86538 0 0 0 1 0 0
COKE            COLA     Coke
 2.65385 4.50000 7.17308 5.61538 4.55769 0 0 1 0 0 0
ORANGESO        SODA     Orange Soda
 3.33333 4.40385 7.11538 6.00000 4.15385 0 0 1 0 0 0
LKOOLAID        SODA     Lemon Koolaid
 6.46154 3.96154 2.36538 2.07692 4.50980 0 0 0 0 0 1
MILK            WATERY   Milk
 6.92157 4.86274 5.55769 4.28846 4.28000 0 1 0 0 0 0
HOTTEA          WATERY   Hot Tea
 6.66667 3.29412 5.42308 3.92308 4.00000 0 1 0 0 0 0
ICETEA          WATERY   Ice Tea
 7.41176 5.23529 6.63461 5.01923 5.07843 0 1 0 0 0 0
HOTCOFEE        WATERY   Hot Coffee
 7.19608 6.27451 7.00000 6.62745 5.30000 0 1 0 0 0 0
ICECOFEE        WATERY   Iced Coffee
 7.76923 3.32692 1.36538 2.01923 1.67308 0 1 0 0 0 0
WATER           WATERY   Water
 3.36538 2.72549 2.09615 1.96154 4.30769 0 0 0 0 1 0
APPLEJUI        JUICE    Apple Juice
 3.40385 3.11538 2.50000 2.46154 4.80769 0 0 0 0 1 0
GRAPEJUI        JUICE    Grape Juice
 5.97872 6.56522 7.56000 6.16327 6.58696 1 0 0 0 0 0
RUM             ALCOHOL  Rum
 6.58333 5.24490 6.42000 5.58000 6.39583 1 0 0 0 0 0
BEER            ALCOHOL  Beer
 5.06383 5.77083 5.50000 4.72000 6.85106 1 0 0 0 0 0
WINE            ALCOHOL  Wine
 7.20930 6.86667 7.61224 6.68085 6.44444 1 0 0 0 0 0
SCOTCH          ALCOHOL  Scotch
 6.25000 6.93333 5.80435 6.71739 6.20000 0 1 0 0 0 0
POSTUM          WATERY   Postum
 2.92308 3.73077 6.80392 4.78431 4.30769 0 0 1 0 0 0
SEVENUP         SODA     7 Up
 2.09615 4.75000 7.48077 6.15385 6.00000 0 0 0 1 0 0
DRPEPPER        COLA     Dr. Pepper
 3.78846 2.80769 4.07692 3.23077 4.11538 0 0 1 0 0 0
LEMONADE        SODA     Lemonade
 2.51923 3.88461 7.36538 5.73077 5.40385 0 0 0 1 0 0
PEPSICOL        COLA     Pepsi Cola
 2.49020 4.03846 6.90385 5.48077 4.80392 0 0 1 0 0 0
ORANGECR        SODA     Orange Crush
 5.92308 4.48077 2.48077 2.94231 6.43137 0 0 0 0 0 1
V8JUICE         JUICE    V8 Juice
;


Data Config;
   Set MDSout;
   If _type_ = 'CONFIG';
Run;

Proc Sort Data=Config(Keep=_name_ dim1 dim2);
   By _name_;
Run;

Proc Sort Data=Ratings(Keep=_name_ label sweet -- simptast);
   By _name_;
Run;

Data Both;
   Merge Config Ratings;
   By _name_;
Run;

/* Compute the multiple regressions between the ratings data
   and the ordinated scores. Note that these coordinates are
   not the simple correlations between ratings and the beverage
   axes, but each axis is adjusted for the other. This gives
   a type of preference analysis.
*/
Proc Transreg Data=Both;
   Model Identity(sweet -- simptast / reverse) = Identity(dim1 dim2);
   Output Out=Coor Coordinates Replace;
   Id label;
Run;

Proc Print Data=Coor;
Run;

%plotit(Data=coor,Datatype=mds vector 1.7,
        Gopplot=Device=WIN Targetdevice=PSEPSF,MONOCHRO=Black);


                     Multidimensional Scaling of Beverages                     1

                  Multidimensional Scaling:  Data=WORK.DISSIM
                 Shape=TRIANGLE Condition=MATRIX Level=INTERVAL
                   Coef=DIAGONAL Dimension=2 Formula=1 Fit=1

         Gconverge=0.01 Maxiter=40 Over=2 Ridge=0.0001 Alternate=MATRIX


                             Badness-of-Fit       Change in     Convergence
    Iteration    Type             Criterion       Criterion         Measure
    -----------------------------------------------------------------------
          0      Initial           0.254678               .        0.383295
          1      Lev-Mar           0.241600        0.013079        0.263773
          2      Gau-New           0.234999        0.006600        0.248504
          3      Lev-Mar           0.232285        0.002714        0.140971
          4      Lev-Mar           0.231868        0.000417        0.199622
          5      Gau-New           0.231523        0.000345        0.121909
          6      Lev-Mar           0.231064        0.000460        0.119441
          7      Lev-Mar           0.230724        0.000340        0.099072
          8      Lev-Mar           0.230512        0.000212        0.101307
          9      Lev-Mar           0.230371        0.000141        0.077594
         10      Lev-Mar           0.230325     0.000045989        0.075475
         11      Lev-Mar           0.230274     0.000051118        0.066860
         12      Lev-Mar           0.230255     0.000019621        0.060714
         13      Lev-Mar           0.230241     0.000013193        0.051914
         14      Lev-Mar           0.230231     0.000010756        0.041812
         15      Lev-Mar           0.230221     0.000009941        0.032841
         16      Lev-Mar           0.230214     0.000007082        0.041261
         17      Lev-Mar           0.230209     0.000004679        0.027445
         18      Lev-Mar           0.230205     0.000003758        0.039646
         19      Lev-Mar           0.230204     0.000001310        0.022034
         20      Lev-Mar           0.230203     0.000000661        0.025990
         21      Lev-Mar           0.230203     0.000000173        0.021277
         22      Lev-Mar           0.230203     0.000000117        0.028306
         23      Lev-Mar           0.230203    2.9257953E-8        0.021307
         24      Lev-Mar           0.230203     0.000000249        0.019980
         25      Lev-Mar           0.230203    1.0364514E-8        0.020334
         26      Lev-Mar           0.230202    9.2928786E-8        0.019371
         27      Lev-Mar           0.230202    6.9449228E-9        0.019336
         28      Lev-Mar           0.230202    8.3259741E-8        0.021156
         29      Lev-Mar           0.230202    4.4045589E-9        0.018788
         30      Lev-Mar           0.230202    7.5023421E-8        0.018299
         31      Lev-Mar           0.230202     0.000000143        0.018284
         32      Lev-Mar           0.230202    6.2850895E-8        0.017828
         33      Lev-Mar           0.230202    1.1434269E-9        0.020118
         34      Lev-Mar           0.230202    5.7154518E-8        0.017396
         35      Lev-Mar           0.230202     0.000000504        0.013027
         36      Lev-Mar           0.230201     0.000000278        0.014298
         37      Lev-Mar           0.230201    7.730019E-11        0.016188
         38      Lev-Mar           0.230201    1.611432E-10        0.020820
         39      Lev-Mar           0.230201    1.370566E-10        0.011115
         40      Lev-Mar           0.230201    1.468412E-10        0.011818

WARNING: Iteration limit reached without convergence. Results may be inaccurate.


                     Multidimensional Scaling of Beverages                     2

                  Multidimensional Scaling:  Data=WORK.DISSIM
                 Shape=TRIANGLE Condition=MATRIX Level=INTERVAL
                   Coef=DIAGONAL Dimension=2 Formula=1 Fit=1

                                 Configuration

                                        DIM1        DIM2
                        --------------------------------
                        COKE           -0.59       -0.32
                        ORANGESO       -0.98        0.36
                        LKOOLAID       -0.78        0.40
                        MILK            1.44        2.00
                        HOTTEA          1.35        0.27
                        ICETEA          0.56        0.26
                        HOTCOFEE        2.03        0.07
                        ICECOFEE        1.48       -0.16
                        WATER           0.40        0.42
                        APPLEJUI       -0.83        0.53
                        GRAPEJUI       -1.03        0.68
                        RUM            -0.32       -1.86
                        BEER            0.09       -1.41
                        WINE           -0.63       -1.40
                        SCOTCH         -0.00       -2.22
                        POSTUM          2.03        0.07
                        SEVENUP        -0.88        0.06
                        DRPEPPER       -0.69       -0.21
                        LEMONADE       -0.63        0.43
                        PEPSICOL       -0.59       -0.27
                        ORANGECR       -0.85        0.33
                        V8JUICE        -0.59        1.94


                     Multidimensional Scaling of Beverages                     3

      TRANSREG Univariate Algorithm Iteration History for IDENTITY(SWEET)

        Iteration     Average      Maximum      Squared      Criterion 
        Number        Change       Change       Multiple R   Change    
        ---------------------------------------------------------------
            1         0.00000      0.00000      0.62631       .        
        NOTE: Algorithm converged.


                     Multidimensional Scaling of Beverages                     4

     TRANSREG Univariate Algorithm Iteration History for IDENTITY(REFRESH)

        Iteration     Average      Maximum      Squared      Criterion 
        Number        Change       Change       Multiple R   Change    
        ---------------------------------------------------------------
            1         0.00000      0.00000      0.59238       .        
        NOTE: Algorithm converged.


                     Multidimensional Scaling of Beverages                     5

     TRANSREG Univariate Algorithm Iteration History for IDENTITY(HEALTHY)

        Iteration     Average      Maximum      Squared      Criterion 
        Number        Change       Change       Multiple R   Change    
        ---------------------------------------------------------------
            1         0.00000      0.00000      0.38832       .        
        NOTE: Algorithm converged.


                     Multidimensional Scaling of Beverages                     6

       TRANSREG Univariate Algorithm Iteration History for IDENTITY(GOOD)

        Iteration     Average      Maximum      Squared      Criterion 
        Number        Change       Change       Multiple R   Change    
        ---------------------------------------------------------------
            1         0.00000      0.00000      0.42435       .        
        NOTE: Algorithm converged.


                     Multidimensional Scaling of Beverages                     7

     TRANSREG Univariate Algorithm Iteration History for IDENTITY(SIMPTAST)

        Iteration     Average      Maximum      Squared      Criterion 
        Number        Change       Change       Multiple R   Change    
        ---------------------------------------------------------------
            1         0.00000      0.00000      0.24156       .        
        NOTE: Algorithm converged.


                     Multidimensional Scaling of Beverages                     8

    OBS    _TYPE_      _NAME_       SWEET     REFRESH    HEALTHY      GOOD

      1    SCORE       Apple Ju    6.53051    6.44794    9.06194    7.47764
      2    SCORE       Beer        3.31256    3.92853    4.73809    3.85918
      3    SCORE       Coke        7.04974    5.03882    3.65809    3.78533
      4    SCORE       Dr. Pepp    7.79974    4.42343    3.67732    3.28533
      5    SCORE       Grape Ju    6.49204    6.05805    8.65809    6.97764
      6    SCORE       Hot Coff    2.48413    3.93814    4.52348    4.41995
      7    SCORE       Hot Tea     2.97432    4.31069    5.60040    5.15072
      8    SCORE       Iced Cof    2.69981    2.89892    4.15809    2.81173
      9    SCORE       Ice Tea     3.22922    5.87931    5.73501    5.51610
     10    SCORE       Lemonade    6.10743    6.36574    7.08117    6.20841
     11    SCORE       Lemon Ko    6.56256    4.76958    4.04271    3.43918
     12    SCORE       Milk        3.43435    5.21189    8.79271    7.36226
     13    SCORE       Orange C    7.40569    5.13497    4.25424    3.95841
     14    SCORE       Orange S    7.24204    4.67343    3.98501    3.82380
     15    SCORE       Pepsi Co    7.37666    5.28882    3.79271    3.70841
     16    SCORE       Postum      3.64589    2.24010    5.35374    2.72179
     17    SCORE       Rum         3.91717    2.60821    3.59809    3.27591
     18    SCORE       Scotch      2.68659    2.30676    3.54585    2.75833
     19    SCORE       7 Up        6.97281    5.44266    4.35417    4.65487
     20    SCORE       V8 Juice    3.97281    4.69266    8.67732    6.49687
     21    SCORE       Water       2.12666    5.84651    9.79271    7.41995
     22    SCORE       Wine        4.83206    3.40260    5.65809    4.71918
     23    M COEFFI    SWEET        .          .          .          .     
     24    M COEFFI    REFRESH      .          .          .          .     

    OBS    SIMPTAST    INTERCEP      DIM1        DIM2      LABEL

      1     5.88087     1.00000    -0.82521     0.53289    Apple Juice   
      2     3.79273     1.00000     0.09350    -1.40653    Beer          
      3     4.32318     1.00000    -0.58599    -0.31682    Coke          
      4     4.18856     1.00000    -0.68935    -0.21159    Dr. Pepper    
      5     5.38087     1.00000    -1.03429     0.68429    Grape Juice   
      6     5.11013     1.00000     2.02871     0.07444    Hot Coffee    
      7     5.90856     1.00000     1.35166     0.26824    Hot Tea       
      8     4.88856     1.00000     1.47510    -0.16055    Iced Coffee   
      9     6.18856     1.00000     0.56406     0.25708    Ice Tea       
     10     6.07318     1.00000    -0.63290     0.42880    Lemonade      
     11     6.03471     1.00000    -0.77752     0.40315    Lemon Koolaid 
     12     5.67876     1.00000     1.43599     2.00407    Milk          
     13     5.38464     1.00000    -0.84805     0.33218    Orange Crush  
     14     5.63087     1.00000    -0.97847     0.36020    Orange Soda   
     15     4.78471     1.00000    -0.58995    -0.26992    Pepsi Cola    
     16     3.98856     1.00000     2.02871     0.07444    Postum        
     17     3.60160     1.00000    -0.32329    -1.85733    Rum           
     18     3.74412     1.00000    -0.00114    -2.21615    Scotch        
     19     5.88087     1.00000    -0.87697     0.05990    7 Up          
     20     3.75719     1.00000    -0.58629     1.94014    V8 Juice      
     21     8.51548     1.00000     0.40273     0.42164    Water         
     22     3.33750     1.00000    -0.63103    -1.40257    Wine          
     23      .          4.94795    -1.51875     0.37151    Sweet         
     24      .          4.58671    -0.60262     0.79833    Refreshing    


                     Multidimensional Scaling of Beverages                     9

    OBS    _TYPE_      _NAME_       SWEET     REFRESH    HEALTHY      GOOD

     25    M COEFFI    HEALTHY      .          .          .          .     
     26    M COEFFI    GOOD         .          .          .          .     
     27    M COEFFI    SIMPTAST     .          .          .          .     

    OBS    SIMPTAST    INTERCEP      DIM1        DIM2      LABEL

     25      .          5.57904    -0.02623     1.27760    Healthy       
     26      .          4.71959    -0.22774     1.02012    Good          
     27      .          5.09428     0.00297     0.58161    Simple Tasting