Constraining Attribute Levels Within Blocks
Posted: Wed Aug 28, 2019 9:03 am
Dear All,
I would like to constrain the attribute level of one of the attributes such that it is the same for all choice tasks within each block. For example, I have a cost ($) variable with 4 levels, and a cost-share (C_Share) variable (% of the cost) with 3 levels and I would like to generate a design with 48 rows and 16 blocks. The design has two alternatives, a status quo (altA), and Alternative B (altB). Cost is zero for the status quo and non-zero for altB. I would like to constrain altB.Cost level to be the same within each block, i.e., the cost level may vary across blocks but not across choice tasks within each block. Any suggestions on how I can do this? I have provided below, my syntax without the constraint.
Design
;alts = altA, altB
;rows = 48
;block = 16
;eff = (mnl,d)
;alg = swap
;rdraws = halton(250)
;model:
U(altA)= b1 /
U(altB) = b2.effects * A[0,1] + b3 * C_Share[25, 50, 75] + b4.effects * B[0,1] + b5.effects * C[0, 1, 2] + b6.effects * D[0,1]+ b7.effects * E[0,1] + b8 * Cost[100, 200, 600, 1,500] + b9 * Cost*C_Share $
I would like to constrain the attribute level of one of the attributes such that it is the same for all choice tasks within each block. For example, I have a cost ($) variable with 4 levels, and a cost-share (C_Share) variable (% of the cost) with 3 levels and I would like to generate a design with 48 rows and 16 blocks. The design has two alternatives, a status quo (altA), and Alternative B (altB). Cost is zero for the status quo and non-zero for altB. I would like to constrain altB.Cost level to be the same within each block, i.e., the cost level may vary across blocks but not across choice tasks within each block. Any suggestions on how I can do this? I have provided below, my syntax without the constraint.
Design
;alts = altA, altB
;rows = 48
;block = 16
;eff = (mnl,d)
;alg = swap
;rdraws = halton(250)
;model:
U(altA)= b1 /
U(altB) = b2.effects * A[0,1] + b3 * C_Share[25, 50, 75] + b4.effects * B[0,1] + b5.effects * C[0, 1, 2] + b6.effects * D[0,1]+ b7.effects * E[0,1] + b8 * Cost[100, 200, 600, 1,500] + b9 * Cost*C_Share $