Page 1 of 1

Dummy coding and order of attribute levels

PostPosted: Thu Apr 13, 2023 12:37 am
by mabbott
I am trying to use dummy coding for the attributes in my DCE, and I'm wondering whether the order I list the levels in matters. For example, is:

b1.dummy[0.1|0.2|0.3] * Diagnosis[35,45,55,30]

The same as:

b1.dummy[0.1|0.2|0.3] * Diagnosis[30,35,45,55]

My DCE has three alternatives: A, B and Status Quo. The levels vary for A and B, but are always the same for the Status Quo alternative. I want to ensure that the correct level is applied to the status quo alternative.

Thanks,

Michael

Re: Dummy coding and order of attribute levels

PostPosted: Thu Apr 13, 2023 11:13 am
by Michiel Bliemer
Yes the order in which you list the levels is important. But it does not depend on the level for the status quo alternative.

The LAST level in the list is always the reference level in Ngene, so when you write:

b1.dummy[0.1|0.2|0.3] * Diagnosis[35,45,55,30]

it means that:
level 30 has a utility of 0 (base)
level 35 has a utility of 0.1
level 45 has a utility of 0.2
level 55 has a utility of 0.3

Any of these levels can be fixed in the status quo, you can do this via:

;require:
statusquo.Diagnosis = 30 ? or statusquo.Diagnosis = 45

To be able to use require constraints, you need to use the modified Federov algorithm,

;alg = mfederov

Michiel