Hello Michiel,
thanks a lot, very clear and helpful.
My idea is to use a reference alternative that varies according to the respondent's replies, without any pre-defined value. I am not sure whether, in this case, I should put pre-defined levels in the design. I assume that in your code the 0 level is "undefined", is it right?
Another issue, in the REAR attribute I have the level 0 that is fixed and defined for ref, but it can be only 1 or 2 for BSP.
I tried to introduce this aspect in the code, but it does not work properly:
- Code: Select all
? Pivot design 1
Design
;alts = ref, BSP1*, BSP2* ? checking for dominance and repetitions, BSP1 and BSP2 are generic alternatives
;rows = 24
;block = 2
;eff = (mnl,d)
;alg = mfederov ? the modified Federov algorithm is needed for including require constraints that fixes the levels for the attributes in the reference alternative
;require:
ref.GEO = 0, ref.COL = 0, ref.REAR = 0
;reject:
BSP1.GEO = 0, BSP2.GEO = 0, BSP1.COL = 0, BSP2.COL = 0, BSP1.REAR = 0, BSP2.REAR = 0
;model:
U(ref) = b0[-2.0]
+ b1[-0.01] * PRICEref[35]
+ b2.effects[1.5|2.0] * GEO[1,2,0]
+ b3.effects[0.5|1.0] * COL[1,2,0]
+ b4.effects[0.5|0.75] * REAR[1,2,0]
/
U(BSP1) = b1 * PRICE[70,120,170](6-10,6-10,6-10) ? the modified Federov algorithm cannot satisfy attribute level balance, therefore I added constraints on the minimum and maximum number of times each attribute level appears within the design; note that with 24 rows, (8,8,8) would mean perfect attribute level balance
+ b2 * GEO
+ b3 * COL
+ b4 * REAR
/
U(BSP2) = b1 * PRICE
+ b2 * GEO
+ b3 * COL
+ b4 * REAR
$
This code gives the error
Error: There were problems generating a fractional factorial of choice tasks. For the modified federov algorithm, increasing the number of candidates might assist.
Should I constrain the options in this design using the ;reject property, or maybe it is better to use a fully labelled experiment and have alt = ref, BSPout, BSPsem (that is, pork from conventional, outdoor and semi-outdoor rearing)?
I tried this code using ood:
- Code: Select all
? Optimal orthogonal in the difference choice (labelled) design
Design
;alts = BSPout, BSPsem, ref
;rows = 12
;orth = ood
;model:
U(BSPout) = b1[0] *PRICE[70, 120, 170]
+ b2.effects[0] *GEO[1,2]
+ b3.effects[0] *COL[1,2]
+ b4.effects[0] *REAR[1,2]
/
U(BSPsem) = b1 *PRICE
+ b2.effects *GEO
+ b3.effects *COL
+ b4.effects *REAR
/
U(ref) = b0[0]
$
I also wrote the code for the efficient design.
- Code: Select all
? Efficient (labelled) design
Design
;alts = BSPout*, BSPsem*, ref
;rows = 12
;eff = (mnl,d)
;alg = mfederov
;model:
U(BSPout) = b1[0] *PRICE[70, 120, 170]
+ b2.effects[0] *GEO[1,2]
+ b3.effects[0] *COL[1,2]
+ b4.effects[0] *REAR[1,2]
/
U(BSPsem) = b1 *PRICE
+ b2.effects *GEO
+ b3.effects *COL
+ b4.effects *REAR
/
U(ref) = b0[0]
+ b1 *PRICEref[35]
$
I cannot insert the GEOref COLref and REARref options.
Thanks in advance for your suggestions.
Maurizio