The TRANSREG Procedure

Example 120.5 Metric Conjoint Analysis of Tire Data

(View the complete code for this example.)

This example, which is more detailed than the previous one, uses PROC TRANSREG to perform a metric conjoint analysis of tire preference data. Conjoint analysis can be used to decompose preference ratings of products or services into components based on qualitative product attributes. For each level of each attribute of interest, a numerical "part-worth utility" value is computed. The sum of the part-worth utilities for each product is an estimate of the utility for that product. The goal is to compute part-worth utilities such that the product utilities are as similar as possible to the original ratings. Metric conjoint analysis, as shown in this example, fits an ordinary linear model directly to data assumed to be measured on an interval scale. Nonmetric conjoint analysis, as shown in Example 120.4, finds an optimal monotonic transformation of original data before fitting an ordinary linear model to the transformed data.

This example has three parts. In the first part, an experimental design is created. In the second part, a DATA step creates descriptions of the stimuli for the experiment. The third part of the example performs the conjoint analyses.

The stimuli for the experiment are 18 hypothetical tires. The stimuli represent different brands (Goodstone, Pirogi, Machismo),[45] prices ($69.99, $74.99, $79.99), expected tread life (50,000, 60,000, 70,000 miles), and road hazard insurance plans (Yes, No).

For a conjoint study such as this, you need to create an experimental design with 3 three-level factors, 1 two-level factor, and 18 combinations or runs. The easiest way to get this design is with the %MktEx autocall macro. The %MktEx macro requires you to specify the number of levels of each of the four factors, followed by N=18, the number of runs. Specifying a random number seed, while not strictly necessary, helps ensure that the design is reproducible. The %MktLab macro assigns the actual factor names instead of the default names x1, x2, and so on, and it assigns formats to the factor levels. The %MktEval macro helps you evaluate the design. It shows how correlated or independent the factors are, how often each factor level appears in the design, how often each pair occurs for every factor pair, and how often each product profile or run occurs in the design. See Kuhfeld (2010) for more information about experimental design and conjoint analysis; look for the latest "Conjoint Analysis" report. The following statements create, evaluate, and display the design:

title 'Tire Study, Experimental Design';

proc format;
   value BrandF
              1 = 'Goodstone'
              2 = 'Pirogi   '
              3 = 'Machismo ';
   value PriceF
              1 = '$69.99'
              2 = '$74.99'
              3 = '$79.99';
   value LifeF
              1 = '50,000'
              2 = '60,000'
              3 = '70,000';
   value HazardF
              1 = 'Yes'
              2 = 'No ';
run;

%mktex(3 3 3 2, n=18, seed=448)

%mktlab(vars=Brand Price Life Hazard, out=sasuser.TireDesign,
        statements=format Brand BrandF9. Price PriceF9.
                   Life LifeF6. Hazard HazardF3.)

%mkteval;

proc print data=sasuser.TireDesign;
run;

The %MktEx macro (Kuhfeld 2010) output displayed in Output 120.5.1 shows you that the design is 100% efficient, which means it is orthogonal and balanced. The %MktEval macro output displayed in Output 120.5.2 shows you that all of the factors are uncorrelated or orthogonal, the design is balanced (each level occurs once), and every pair of factor levels occurs equally often (again showing that the design is orthogonal). The n-way frequencies show that each product profile occurs once (there are no duplicates). The design is shown in Output 120.5.3. The design is automatically randomized (the profiles were sorted into a random order and the original levels are randomly reassigned). Orthogonality, balance, randomization, and other design concepts are discussed in detail in Kuhfeld (2010), in the "Experimental Design, Efficiency, Coding, and Choice Designs" report.

Output 120.5.1: Tire Study, Design Efficiency

Tire Study, Experimental Design

Algorithm Search History

                                   Current          Best                        
           Design    Row,Col  D-Efficiency  D-Efficiency  Notes                 
           ----------------------------------------------------------           
                1      Start      100.0000      100.0000  Tab                   
                1        End      100.0000                                      
                                                                                

Tire Study, Experimental Design

                              The OPTEX Procedure                               

                            Class Level Information                             

                             Class  Levels  Values                              

                             x1       3     1 2 3                               
                             x2       3     1 2 3                               
                             x3       3     1 2 3                               
                             x4       2     1 2                                 

Tire Study, Experimental Design

Design NumberD-EfficiencyA-EfficiencyG-EfficiencyAverage Prediction
Standard Error
1100.0000100.0000100.00000.6667


Output 120.5.2: Tire Study, Design Evaluation

Tire Study, Experimental Design
Canonical Correlations Between the Factors
There are 0 Canonical Correlations Greater Than 0.316

 BrandPriceLifeHazard
Brand1000
Price0100
Life0010
Hazard0001



Tire Study, Experimental Design
Summary of Frequencies
There are 0 Canonical Correlations Greater Than 0.316

  Frequencies
 Brand6 6 6
 Price6 6 6
 Life6 6 6
 Hazard9 9
 Brand Price2 2 2 2 2 2 2 2 2
 Brand Life2 2 2 2 2 2 2 2 2
 Brand Hazard3 3 3 3 3 3
 Price Life2 2 2 2 2 2 2 2 2
 Price Hazard3 3 3 3 3 3
 Life Hazard3 3 3 3 3 3
 N-Way1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1


Output 120.5.3: Tire Study, Design

Tire Study, Experimental Design

ObsBrandPriceLifeHazard
1Pirogi$79.9950,000No
2Machismo$79.9960,000No
3Machismo$74.9970,000Yes
4Machismo$74.9950,000No
5Goodstone$74.9960,000Yes
6Pirogi$69.9960,000Yes
7Goodstone$69.9950,000Yes
8Machismo$69.9950,000Yes
9Pirogi$74.9960,000Yes
10Pirogi$74.9950,000No
11Goodstone$79.9960,000No
12Goodstone$69.9970,000No
13Pirogi$79.9970,000Yes
14Goodstone$74.9970,000No
15Machismo$69.9960,000No
16Machismo$79.9970,000Yes
17Pirogi$69.9970,000No
18Goodstone$79.9950,000Yes


The %MktEx macro requires SAS/STAT, SAS/QC, and SAS/IML software. Alternatively, you can make a design for this experiment using the %MktDes macro, which requires only SAS/STAT and SAS/QC software. The %MktDes macro contains a small subset of the functionality of the %MktEx macro. It can be used as follows:

%mktdes(factors=Brand=3 Price=3 Life=3 Hazard=2, n=18)

The results of this step are not shown or used.

Next, the questionnaires are printed and given to the subjects, who are asked to rate the tires.

The following statements produce Output 120.5.4:

data _null_;
   title;
   set sasuser.TireDesign;
   file print;
   if mod(_n_,4) eq 1 then do;
      put _page_;
      put +55 'Subject ________';
   end;
   length hazardstring $ 7.;
   if put(hazard, hazardf3.) = 'Yes'
      then hazardstring = 'with';
      else hazardstring = 'without';

   s = 3 + (_n_ >= 10);
   put // _n_ +(-1) ') For your next tire purchase, '
          'how likely are you to buy this product?'
       // +s Brand 'brand tires at ' Price +(-1) ','
       /  +s 'with a ' Life 'tread life guarantee, '
       /  +s 'and ' hazardstring 'road hazard insurance.'
       // +s 'Definitely Would                 Definitely Would'
       /  +s 'Not Purchase                             Purchase'
       // +s '1     2     3     4     5     6     7     8     9 ';
run;

This output in Output 120.5.4 is abbreviated in the interest of conserving space; the statements actually produce stimuli for all combinations.

Output 120.5.4: Conjoint Analysis, Stimuli Descriptions

                                                       Subject ________         


1) For your next tire purchase, how likely are you to buy this product?         

   Pirogi brand tires at $79.99,                                                
   with a 50,000 tread life guarantee,                                          
   and without road hazard insurance.                                           

   Definitely Would                 Definitely Would                            
   Not Purchase                             Purchase                            

   1     2     3     4     5     6     7     8     9                            


2) For your next tire purchase, how likely are you to buy this product?         

   Machismo brand tires at $79.99,                                              
   with a 60,000 tread life guarantee,                                          
   and without road hazard insurance.                                           

   Definitely Would                 Definitely Would                            
   Not Purchase                             Purchase                            

   1     2     3     4     5     6     7     8     9                            


3) For your next tire purchase, how likely are you to buy this product?         

   Machismo brand tires at $74.99,                                              
   with a 70,000 tread life guarantee,                                          
   and with road hazard insurance.                                              

   Definitely Would                 Definitely Would                            
   Not Purchase                             Purchase                            

   1     2     3     4     5     6     7     8     9                            


4) For your next tire purchase, how likely are you to buy this product?         

   Machismo brand tires at $74.99,                                              
   with a 50,000 tread life guarantee,                                          
   and without road hazard insurance.                                           

   Definitely Would                 Definitely Would                            
   Not Purchase                             Purchase                            

   1     2     3     4     5     6     7     8     9                            


The third part of the example performs the conjoint analyses. The DATA step reads the data. Only the ratings are entered, one row per subject. Real conjoint studies have many more subjects than five. The TRANSPOSE procedure transposes this () data set into an () data set that can be merged with the factor level data set sasuser.TireDesign. The next DATA step does the merge. The PRINT procedure displays the input data set.

PROC TRANSREG fits the five individual conjoint models, one for each subject. The UTILITIES a-option displays the conjoint analysis results. The SHORT a-option suppresses the iteration histories, OUTTEST=UTILS creates an output data set with all of the conjoint results, and the SEPARATORS= option requests that the labels constructed for each category contain two blanks between the variable name and the level value. The ODS SELECT statement is used to limit the displayed output. The MODEL statement specifies IDENTITY for the ratings, which specifies a metric conjoint analysis—the ratings are not transformed. The variables Brand, Price, Life, and Hazard are designated as CLASS variables, and the part-worth utilities are constrained to sum to zero within each factor.

The following statements produce Output 120.5.5:

title 'Tire Study, Data Entry, Preprocessing';

data Results;
   input (c1-c18) (1.);
   datalines;
233279766526376493
124467885349168274
262189456534275794
184396375364187754
133379775526267493
;
* Create an Object by Subject Data Matrix;
proc transpose data=Results out=Results(drop=_name_) prefix=Subj;
run;

* Merge the Factor Levels with the Data Matrix;
data Both;
   merge sasuser.TireDesign Results;
run;

proc print;
   title2 'Data Set for Conjoint Analysis';
run;

title 'Tire Study, Individual Conjoint Analyses';

* Fit Each Subject Individually;
proc transreg data=Both utilities short outtest=utils separators='  ';
   ods select TestsNote FitStatistics Utilities;
   model identity(Subj1-Subj5) =
         class(Brand Price Life Hazard / zero=sum);
run;

The output contains two tables per subject, one with overall fit statistics and one with the conjoint analysis results.

Output 120.5.5: Conjoint Analysis

Tire Study, Data Entry, Preprocessing
Data Set for Conjoint Analysis

ObsBrandPriceLifeHazardSubj1Subj2Subj3Subj4Subj5
1Pirogi$79.9950,000No21211
2Machismo$79.9960,000No32683
3Machismo$74.9970,000Yes34243
4Machismo$74.9950,000No24133
5Goodstone$74.9960,000Yes76897
6Pirogi$69.9960,000Yes97969
7Goodstone$69.9950,000Yes78437
8Machismo$69.9950,000Yes68577
9Pirogi$74.9960,000Yes65655
10Pirogi$74.9950,000No53535
11Goodstone$79.9960,000No24362
12Goodstone$69.9970,000No69446
13Pirogi$79.9970,000Yes31212
14Goodstone$74.9970,000No76786
15Machismo$69.9960,000No68577
16Machismo$79.9970,000Yes42774
17Pirogi$69.9970,000No97959
18Goodstone$79.9950,000Yes34443


Tire Study, Individual Conjoint Analyses

The TRANSREG Procedure


The TRANSREG Procedure Hypothesis Tests for Identity(Subj1)

Root MSE1.34164R-Square0.8043
Dependent Mean5.00000Adj R-Sq0.6674
Coeff Var26.83282  

Utilities Table Based on the Usual Degrees of Freedom
LabelUtilityStandard
Error
Importance
(% Utility
Range)
Variable
Intercept5.00000.31623 Intercept
Brand Goodstone0.33330.4472120.833Class.BrandGoodstone
Brand Pirogi0.66670.44721 Class.BrandPirogi
Brand Machismo-1.00000.44721 Class.BrandMachismo
Price $69.992.16670.4472154.167Class.Price_69_99
Price $74.990.00000.44721 Class.Price_74_99
Price $79.99-2.16670.44721 Class.Price_79_99
Life 50,000-0.83330.4472116.667Class.Life50_000
Life 60,0000.50000.44721 Class.Life60_000
Life 70,0000.33330.44721 Class.Life70_000
Hazard Yes0.33330.316238.333Class.HazardYes
Hazard No-0.33330.31623 Class.HazardNo

Tire Study, Individual Conjoint Analyses

The TRANSREG Procedure


The TRANSREG Procedure Hypothesis Tests for Identity(Subj2)

Root MSE0.56765R-Square0.9710
Dependent Mean4.94444Adj R-Sq0.9506
Coeff Var11.48049  

Utilities Table Based on the Usual Degrees of Freedom
LabelUtilityStandard
Error
Importance
(% Utility
Range)
Variable
Intercept4.94440.13380 Intercept
Brand Goodstone1.22220.1892225.658Class.BrandGoodstone
Brand Pirogi-0.94440.18922 Class.BrandPirogi
Brand Machismo-0.27780.18922 Class.BrandMachismo
Price $69.992.88890.1892265.132Class.Price_69_99
Price $74.99-0.27780.18922 Class.Price_74_99
Price $79.99-2.61110.18922 Class.Price_79_99
Life 50,000-0.27780.189227.895Class.Life50_000
Life 60,0000.38890.18922 Class.Life60_000
Life 70,000-0.11110.18922 Class.Life70_000
Hazard Yes0.05560.133801.316Class.HazardYes
Hazard No-0.05560.13380 Class.HazardNo

Tire Study, Individual Conjoint Analyses

The TRANSREG Procedure


The TRANSREG Procedure Hypothesis Tests for Identity(Subj3)

Root MSE2.48104R-Square0.3902
Dependent Mean4.94444Adj R-Sq-0.0367
Coeff Var50.17832  

Utilities Table Based on the Usual Degrees of Freedom
LabelUtilityStandard
Error
Importance
(% Utility
Range)
Variable
Intercept4.94440.58479 Intercept
Brand Goodstone0.05560.8270118.261Class.BrandGoodstone
Brand Pirogi0.55560.82701 Class.BrandPirogi
Brand Machismo-0.61110.82701 Class.BrandMachismo
Price $69.991.05560.8270131.304Class.Price_69_99
Price $74.99-0.11110.82701 Class.Price_74_99
Price $79.99-0.94440.82701 Class.Price_79_99
Life 50,000-1.44440.8270141.739Class.Life50_000
Life 60,0001.22220.82701 Class.Life60_000
Life 70,0000.22220.82701 Class.Life70_000
Hazard Yes0.27780.584798.696Class.HazardYes
Hazard No-0.27780.58479 Class.HazardNo

Tire Study, Individual Conjoint Analyses

The TRANSREG Procedure


The TRANSREG Procedure Hypothesis Tests for Identity(Subj4)

Root MSE1.90321R-Square0.6185
Dependent Mean5.05556Adj R-Sq0.3514
Coeff Var37.64598  

Utilities Table Based on the Usual Degrees of Freedom
LabelUtilityStandard
Error
Importance
(% Utility
Range)
Variable
Intercept5.05560.44859 Intercept
Brand Goodstone0.61110.6344036.885Class.BrandGoodstone
Brand Pirogi-1.55560.63440 Class.BrandPirogi
Brand Machismo0.94440.63440 Class.BrandMachismo
Price $69.990.27780.6344012.295Class.Price_69_99
Price $74.990.27780.63440 Class.Price_74_99
Price $79.99-0.55560.63440 Class.Price_79_99
Life 50,000-1.55560.6344049.180Class.Life50_000
Life 60,0001.77780.63440 Class.Life60_000
Life 70,000-0.22220.63440 Class.Life70_000
Hazard Yes0.05560.448591.639Class.HazardYes
Hazard No-0.05560.44859 Class.HazardNo

Tire Study, Individual Conjoint Analyses

The TRANSREG Procedure


The TRANSREG Procedure Hypothesis Tests for Identity(Subj5)

Root MSE1.36219R-Square0.8162
Dependent Mean4.94444Adj R-Sq0.6875
Coeff Var27.54987  

Utilities Table Based on the Usual Degrees of Freedom
LabelUtilityStandard
Error
Importance
(% Utility
Range)
Variable
Intercept4.94440.32107 Intercept
Brand Goodstone0.22220.454069.023Class.BrandGoodstone
Brand Pirogi0.22220.45406 Class.BrandPirogi
Brand Machismo-0.44440.45406 Class.BrandMachismo
Price $69.992.55560.4540667.669Class.Price_69_99
Price $74.99-0.11110.45406 Class.Price_74_99
Price $79.99-2.44440.45406 Class.Price_79_99
Life 50,000-0.61110.4540615.789Class.Life50_000
Life 60,0000.55560.45406 Class.Life60_000
Life 70,0000.05560.45406 Class.Life70_000
Hazard Yes0.27780.321077.519Class.HazardYes
Hazard No-0.27780.32107 Class.HazardNo

The next steps summarize the results. Three tables are displayed, showing the following: all of the importance values, the average importance, and the part-worth utilities. The first DATA step selects the importance information from the UTILS data set. The final assignment statement stores just the variable name from the label, relying on the fact that the separator is two blanks. PROC TRANSPOSE creates the data set of importances, one row per subject, and PROC PRINT displays the results. The MEANS procedure displays the average importance of each attribute across the subjects. The next DATA step selects the part-worth utilities information from the UTILS data set. PROC TRANSPOSE creates the data set of utilities, one row per subject, and PROC PRINT displays the results. The following statements produce Output 120.5.6:

title 'Tire Study Results';

* Gather the Importance Values;
data Importance;
   set utils(keep=_depvar_ Importance Label);
   if n(Importance);
   label = substr(label, 1, index(label, '  '));
run;

proc transpose out=Importance2(drop=_:);
   by _depvar_;
   id Label;
run;

proc print;
   title2 'Importance Values';
run;

proc means;
   title2 'Average Importance';
run;

* Gather the Part-Worth Utilities;
data Utilities;
   set utils(keep=_depvar_ Coefficient Label);
   if n(Coefficient);
run;

proc transpose out=Utilities2(drop=_:);
   by _depvar_;
   id Label;
   idlabel Label;
run;

proc print label;
   title2 'Utilities';
run;

Output 120.5.6: Summary of Conjoint Analysis Results

Tire Study Results
Importance Values

ObsBrandPriceLifeHazard
120.833354.166716.66678.33333
225.657965.13167.89471.31579
318.260931.304341.73918.69565
436.885212.295149.18031.63934
59.022667.669215.78957.51880


Tire Study Results
Average Importance

The MEANS Procedure

VariableNMeanStd DevMinimumMaximum
Brand
Price
Life
Hazard
5
5
5
5
22.1319800
46.1133697
26.2540671
5.5005832
10.2301014
23.7391251
18.0547195
3.6989117
9.0225564
12.2950820
7.8947368
1.3157895
36.8852459
67.6691729
49.1803279
8.6956522

Tire Study Results
Utilities

ObsInterceptBrand GoodstoneBrand PirogiBrand MachismoPrice $69.99Price $74.99Price $79.99Life 50,000Life 60,000Life 70,000Hazard YesHazard No
15.000000.333330.66667-1.000002.166670.00000-2.16667-0.833330.500000.333330.33333-0.33333
24.944441.22222-0.94444-0.277782.88889-0.27778-2.61111-0.277780.38889-0.111110.05556-0.05556
34.944440.055560.55556-0.611111.05556-0.11111-0.94444-1.444441.222220.222220.27778-0.27778
45.055560.61111-1.555560.944440.277780.27778-0.55556-1.555561.77778-0.222220.05556-0.05556
54.944440.222220.22222-0.444442.55556-0.11111-2.44444-0.611110.555560.055560.27778-0.27778

Based on the importance values, price is the most important attribute for some of the respondents, but expected tread life is most important for others. On the average, price is most important, followed by expected tread life and brand. Road hazard insurance is less important. Each of the brands is preferred by some of the respondents. All respondents preferred a lower price over a higher price, a longer tread life, and road hazard insurance.



[45] In real conjoint experiments, real brand names would be used.

Last updated: February 13, 2019