Including a status quo alternative with dummy coded variable
Posted: Thu Jun 07, 2012 3:25 am
Hi, this is Scott--
I'm wondering if there's an error in my code or a possible work-around for a problem I've come up against: I've been unable to generate a design including a status quo alternative for a utility function that is comprised of dummy coded variables. When I try to specify levels for the dummy coded variables, I get an error: " Two identically named attributes do not have consistently specified levels: 'programc.conditions', 'programa.conditions' "
Thank you in advance for your help-- here's the syntax I'm using:
Design
; eff=(mnl, wtp(ref1))
; wtp=ref1(conditions, eligibility, place, payment/cost)
; rows = 80
; alts=programA, programB, programC
; model:
U(programA) = conditions.dummy [-.3|-.1]*conditions +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility +
place.dummy [.1]*place[0,1] +
payment.dummy [.1|.2]*payment +
cost [-0.05]*cost [0, 2, 4, 6, 8, 10]
/
U(programB) = conditions.dummy [-.3|-.1]*conditions +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility +
place.dummy [.1]*place[0,1] +
payment.dummy [.1|.2]*payment +
cost [-0.05]*cost [0, 2, 4, 6, 8, 10]
/
U(programC)= conditions.dummy [-.3|-.1]*conditions[1] +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility[3] +
place.dummy [.1]*place[0] +
payment.dummy [.1|.2]*payment[1] +
cost [-0.05]*cost [6]
$
I'm wondering if there's an error in my code or a possible work-around for a problem I've come up against: I've been unable to generate a design including a status quo alternative for a utility function that is comprised of dummy coded variables. When I try to specify levels for the dummy coded variables, I get an error: " Two identically named attributes do not have consistently specified levels: 'programc.conditions', 'programa.conditions' "
Thank you in advance for your help-- here's the syntax I'm using:
Design
; eff=(mnl, wtp(ref1))
; wtp=ref1(conditions, eligibility, place, payment/cost)
; rows = 80
; alts=programA, programB, programC
; model:
U(programA) = conditions.dummy [-.3|-.1]*conditions +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility +
place.dummy [.1]*place[0,1] +
payment.dummy [.1|.2]*payment +
cost [-0.05]*cost [0, 2, 4, 6, 8, 10]
/
U(programB) = conditions.dummy [-.3|-.1]*conditions +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility +
place.dummy [.1]*place[0,1] +
payment.dummy [.1|.2]*payment +
cost [-0.05]*cost [0, 2, 4, 6, 8, 10]
/
U(programC)= conditions.dummy [-.3|-.1]*conditions[1] +
eligibility.dummy [-.4|-.2|-.5|-.1|-.15|-.3] *eligibility[3] +
place.dummy [.1]*place[0] +
payment.dummy [.1|.2]*payment[1] +
cost [-0.05]*cost [6]
$