an error message of " worng number of levels for dummy
Posted: Thu Aug 20, 2020 7:19 am
Dear Michiel,
When I run an orthogonal design (shown below), I got an error message "Error: An attribute has the wrong number of levels for dummy or effects coding. 'tech'". Could you help me to figure out why I got this message and how should I solve it?
When I run an orthogonal design (shown below), I got an error message "Error: An attribute has the wrong number of levels for dummy or effects coding. 'tech'". Could you help me to figure out why I got this message and how should I solve it?
- Code: Select all
Design;
;alts = alt1*,alt2*,alt3*,nobuy;
;rows = 40;
;orth = ood;
;block = 4;
;model:
U(alt1) = b0 + b1 * price[200,300,400,500,600] +
b2.dummy * tech[1,2,3] +
b3.dummy * spec[1,2,3,4] +
b4.dummy * timing[1,2] +
b5.dummy * life[1,2,3,4]
/
U(alt2) = b0 + b1 * price +
b2 * tech +
b3 * spec +
b4 * timing +
b5 * life
/
U(alt3) = b0 + b1 * price +
b2 * tech +
b3 * spec +
b4 * timing +
b5 * life
$