I'm not sure this line is doing what you think it is: if ENGINE='Traditional' then dummy=1; if ENGINE= ‘Advanced’ then dummy=2; else dummy=0; Shouldn't that be if ENGINE='Traditional' then dummy=1; else if ENGINE= ‘Advanced’ then dummy=2; else dummy=0; if you don't have the else on the second line, I wouldn't think you would ever have the case where dummy=1;
... View more