The BCHOICE Procedure
Example 27.9 Allocation Choice Example
(View the complete code for this example.)
Consider an example of allocation choice data in the MAMR study [25]. In this study, researchers aimed to learn about oncologists’ preferences on different scenarios of pharmaceutical therapies and benefits of these therapies in relation to the survival of patients with metastatic breast cancer.
data MAMR; input ID Set None TrtScheme RespRate Time Status TrtLine Risk Cost Alloc @@; datalines; 1 1 1 3 3 1 2 1 6 1 0.2 1 1 1 5 1 1 1 3 4 2 0 1 1 1 7 2 2 2 3 6 2 0 1 1 0 0 0 0 0 0 0 0 0.8 1 2 1 1 1 2 2 1 1 1 0.12 1 2 1 3 3 1 1 2 2 1 0.4 1 2 1 5 1 2 1 3 4 3 0 1 2 0 0 0 0 0 0 0 0 0.48 1 3 1 4 3 1 2 1 4 4 0.08 ... more lines ... 146 10 0 0 0 0 0 0 0 0 0 146 11 1 1 2 1 1 3 6 1 0.34 146 11 1 2 2 2 1 3 3 1 0.28 146 11 1 1 2 2 2 1 1 1 0.38 146 11 0 0 0 0 0 0 0 0 0 ;
proc print data=MAMR(obs=20); run;
The data for the first several choice sets are shown in Output 27.9.1.
Output 27.9.1: Data for the First Several Allocation Choice Sets
| Obs | ID | Set | None | TrtScheme | RespRate | Time | Status | TrtLine | Risk | Cost | Alloc |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | 3 | 3 | 1 | 2 | 1 | 6 | 1 | 0.20 |
| 2 | 1 | 1 | 1 | 5 | 1 | 1 | 1 | 3 | 4 | 2 | 0.00 |
| 3 | 1 | 1 | 1 | 7 | 2 | 2 | 2 | 3 | 6 | 2 | 0.00 |
| 4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.80 |
| 5 | 1 | 2 | 1 | 1 | 1 | 2 | 2 | 1 | 1 | 1 | 0.12 |
| 6 | 1 | 2 | 1 | 3 | 3 | 1 | 1 | 2 | 2 | 1 | 0.40 |
| 7 | 1 | 2 | 1 | 5 | 1 | 2 | 1 | 3 | 4 | 3 | 0.00 |
| 8 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.48 |
| 9 | 1 | 3 | 1 | 4 | 3 | 1 | 2 | 1 | 4 | 4 | 0.08 |
| 10 | 1 | 3 | 1 | 4 | 3 | 2 | 2 | 1 | 5 | 3 | 0.20 |
| 11 | 1 | 3 | 1 | 1 | 1 | 2 | 2 | 1 | 6 | 1 | 0.40 |
| 12 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.32 |
| 13 | 1 | 4 | 1 | 1 | 1 | 2 | 1 | 1 | 6 | 1 | 0.60 |
| 14 | 1 | 4 | 1 | 2 | 2 | 1 | 2 | 2 | 6 | 1 | 0.20 |
| 15 | 1 | 4 | 1 | 3 | 3 | 2 | 1 | 3 | 6 | 1 | 0.04 |
| 16 | 1 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 |
| 17 | 1 | 5 | 1 | 3 | 2 | 2 | 1 | 1 | 6 | 1 | 0.60 |
| 18 | 1 | 5 | 1 | 4 | 3 | 1 | 2 | 2 | 4 | 2 | 0.00 |
| 19 | 1 | 5 | 1 | 5 | 2 | 1 | 1 | 1 | 4 | 3 | 0.20 |
| 20 | 1 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20 |
The variable ID represents the IDs for the 133 oncologists in the study. Each oncologist was presented with 11 choice tasks, each consisting of four scenarios of therapies (including the NONE option), and was asked to state the number of times he or she would pick each alternative. These numbers of times were then transformed into percentages, which sum to 100% within each choice task. The variable Alloc is the response variable that gives a percentage of preference for each alternative, and the sum of percentages in each choice set is 100%. Table 27.13 lists all the attributes and their levels.
Table 27.13: Attributes in the MAMR Study
Attribute | Label | Level | Description |
|---|---|---|---|
TrtScheme | Treatment scheme | 0 | No treatment |
1 | Taxotere + Adriamicina + SG 22.4 months + SLP 9.3 months | ||
2 | Taxotere + Xeloda + SG 14.7 months + SLP 6.2 months | ||
3 | Taxotere + Gemcitabina + SG 18.6 months + SLP 6.1 months | ||
4 | Taxol + Avastin + SG 26.7 months + SLP 11.8 months | ||
5 | Taxotere + Avastin + SG 83% a year + SLP 8.8 months | ||
6 | Taxol weekly 90mg/m2 + SLP 6.2 months | ||
7 | Taxotere 100mg/m2 + SG 15 months + SLP 6.5 months | ||
RespRate | Response rate | 1 | 40% |
2 | 50% | ||
3 | 60% | ||
TrtTime | Treatment time | 1 | 6 months |
2 | Until cure | ||
Status | Status | 1 | 0–1 (better) |
2 | >=2 | ||
TrtLine | Treatment lines | 1 | First line |
2 | Second line | ||
3 | Third line | ||
Risk | Risk factors | 1 | Cardiovascular disease |
2 | Hepatopathy moderate to severe | ||
3 | Renal failure | ||
4 | Thromboembolism history | ||
5 | Arterial Hypertension (HTA) | ||
6 | No risk | ||
Cost | Cost per month | 1 | 1,000 |
2 | 3,000 | ||
3 | 5,000 | ||
4 | 7,000 |
The following statements fit a logit model with random effects for these allocation choice data by specifying CHOICETYPE=ALLOCATION:
proc bchoice data=MAMR seed=124 nthreads=8 nmc=20000 nthin=2 plots=none;
class TrtScheme(ref=first) RespRate Time Status TrtLine Risk Cost ID Set
/ ref=last;
model Alloc = / choiceset=(ID Set) choicetype=allocation;
random TrtScheme RespRate Time Status TrtLine Risk Cost
/ subject=ID remean;
run;
The NMC= option requests to run the MCMC chain for 20,000 iterations, and the THIN=2 option keeps one of every two samples for analysis. PLOTS=NONE is specified, so the plots will not be produced to save time. The REMEAN option in the RANDOM statement requests estimation of the mean of the random effects.
When CHOICETYPE=ALLOCATION, you can specify a positive integer in the WEIGHT= suboption to indicate how many choice sets the allocated percentages should apply to. For example, if the respondent were asked to imagine the next 20 occasions and to allocate a percentage of those 20 occasions for each alternative, you would specify WEIGHT=20. By default, WEIGHT=10. In this example, the default (WEIGHT=10) is close to the nature of the original data collection.
The "Model Information" table, as shown in Output 27.9.2, shows that the type of choice response is allocation.
Output 27.9.2: Model Information
As shown in the "Choice Sets Summary" table in Output 27.9.3, there are a total of 1,463 choice sets, all of which display the same pattern: they have a total of four alternatives, and the sum of percentages is 100%. If the sum of percentages within one choice set is not equal to 100%, the choice set is invalid. PROC BCHOICE deletes all invalid choice sets and produces a warning message.
Output 27.9.3: Choice Sets Summary
As you see in Output 27.9.4, TrtScheme, Status, TrtLine, and Risk have impact on the choices. It seems that treatments (TrtScheme) with shorter periods of SG and SLP follow-up are more preferred than those with longer follow-up times. The oncologists in the study tend to choose the therapies that would have the best performance status (Status); the part-worth for level 1 (better) of Status is positive compared to the referent level 2 of Status, which is set at 0. More important, risk factors (Risk) have a large influence on the choice of various treatments: the estimates of the part-worths for all risk factors are all negative and have relatively large values, reflecting that doctors try to avoid them as much as possible, especially treatments with serious side effects. One surprising result is that therapy cost does not play a role in the decision-making process. But when you realize that the respondents are doctors, not their patients, and that the study deals with metastatic cancer, it might not be hard to figure out why.
Output 27.9.4: PROC BCHOICE Posterior Summary Statistics
| Posterior Summaries and Intervals | |||||
|---|---|---|---|---|---|
| Parameter | N | Mean | Standard Deviation | 95% HPD Interval | |
| REMean TrtScheme 1 | 10000 | -0.3178 | 0.1647 | -0.6514 | -0.00866 |
| REMean TrtScheme 2 | 10000 | -0.5021 | 0.1507 | -0.8010 | -0.2145 |
| REMean TrtScheme 3 | 10000 | -0.3978 | 0.1476 | -0.6803 | -0.1057 |
| REMean TrtScheme 4 | 10000 | 0.1785 | 0.1480 | -0.1180 | 0.4624 |
| REMean TrtScheme 5 | 10000 | -0.4356 | 0.1499 | -0.7329 | -0.1380 |
| REMean TrtScheme 6 | 10000 | 0.1791 | 0.1746 | -0.1612 | 0.5265 |
| REMean TrtScheme 7 | 10000 | -0.0555 | 0.1468 | -0.3571 | 0.2126 |
| REMean RespRate 1 | 10000 | -0.0493 | 0.0781 | -0.1982 | 0.1076 |
| REMean RespRate 2 | 10000 | -0.0348 | 0.0771 | -0.1877 | 0.1147 |
| REMean Time 1 | 10000 | -0.0371 | 0.0717 | -0.1765 | 0.1056 |
| REMean Status 1 | 10000 | 0.1893 | 0.0741 | 0.0456 | 0.3344 |
| REMean TrtLine 1 | 10000 | 0.4689 | 0.0835 | 0.3045 | 0.6285 |
| REMean TrtLine 2 | 10000 | 0.2883 | 0.0806 | 0.1306 | 0.4465 |
| REMean Risk 1 | 10000 | -1.2123 | 0.1782 | -1.5556 | -0.8573 |
| REMean Risk 2 | 10000 | -0.8808 | 0.1398 | -1.1627 | -0.6108 |
| REMean Risk 3 | 10000 | -0.9594 | 0.1601 | -1.2731 | -0.6476 |
| REMean Risk 4 | 10000 | -1.4509 | 0.1794 | -1.8124 | -1.1090 |
| REMean Risk 5 | 10000 | -1.4393 | 0.1732 | -1.7814 | -1.1135 |
| REMean Cost 1 | 10000 | 0.1649 | 0.1300 | -0.0943 | 0.4162 |
| REMean Cost 2 | 10000 | -0.0330 | 0.1061 | -0.2371 | 0.1751 |
| REMean Cost 3 | 10000 | -0.0936 | 0.1174 | -0.3364 | 0.1253 |
| REVar TrtScheme 1 | 10000 | 1.7718 | 0.3062 | 1.2306 | 2.4020 |
| REVar TrtScheme 2 | 10000 | 1.0636 | 0.2037 | 0.6920 | 1.4722 |
| REVar TrtScheme 3 | 10000 | 1.2343 | 0.2166 | 0.8439 | 1.6742 |
| REVar TrtScheme 4 | 10000 | 1.9933 | 0.3025 | 1.4457 | 2.6027 |
| REVar TrtScheme 5 | 10000 | 1.9061 | 0.3168 | 1.2955 | 2.5264 |
| REVar TrtScheme 6 | 10000 | 1.3845 | 0.2915 | 0.8668 | 1.9748 |
| REVar TrtScheme 7 | 10000 | 0.9070 | 0.1750 | 0.5886 | 1.2585 |
| REVar RespRate 1 | 10000 | 0.4506 | 0.0673 | 0.3290 | 0.5842 |
| REVar RespRate 2 | 10000 | 0.4533 | 0.0676 | 0.3295 | 0.5859 |
| REVar Time 1 | 10000 | 0.4296 | 0.0625 | 0.3097 | 0.5496 |
| REVar Status 1 | 10000 | 0.4670 | 0.0692 | 0.3404 | 0.6071 |
| REVar TrtLine 1 | 10000 | 0.5918 | 0.0910 | 0.4225 | 0.7684 |
| REVar TrtLine 2 | 10000 | 0.4901 | 0.0748 | 0.3570 | 0.6436 |
| REVar Risk 1 | 10000 | 1.3516 | 0.3257 | 0.7761 | 2.0061 |
| REVar Risk 2 | 10000 | 1.2343 | 0.2634 | 0.7722 | 1.7622 |
| REVar Risk 3 | 10000 | 1.1511 | 0.2694 | 0.6700 | 1.6896 |
| REVar Risk 4 | 10000 | 2.6897 | 0.5148 | 1.7562 | 3.7233 |
| REVar Risk 5 | 10000 | 2.7399 | 0.4715 | 1.8703 | 3.6810 |
| REVar Cost 1 | 10000 | 1.0116 | 0.1675 | 0.7030 | 1.3472 |
| REVar Cost 2 | 10000 | 0.7321 | 0.1159 | 0.5201 | 0.9731 |
| REVar Cost 3 | 10000 | 0.9321 | 0.1783 | 0.6065 | 1.2881 |
[25] The data were provided by Hernan Talledo, Ph.D., associate consultant at Datum International, Lima, Peru, and advanced market research professor at Universidad San Ignacio de Loyola and University of the Pacific in Lima; and Thomas C. Eagle, Ph.D, president of Eagle Analytics of California, Inc.
Copyright © SAS Institute Inc. All rights reserved.