questions about continuous variables in Ngene
Posted: Thu Oct 14, 2021 11:36 pm
Hello,
My questions are regarding dealing with continuous variables in Ngene.
The first question is about using the two-step method suggested in Chapter 9 of the manual. I wonder why one of my attributes (E) in the final design results has three levels (0,1,2), while the utility function I set for this attribute includes only two levels (0 and 1). The initial design results saved in the first step (without the salary variable, the continuous variable) didn't have this problem.
The initial design (the first step):
Design
;alts=alt1,alt2,alt3
;rows=18
;eff=(mnl,d)
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]/
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]
$
The second step for continuous variable:
Design
;alts=alt1,alt2,alt3
;rows=18
;eff=(mnl,d)
;alg=neldermead(nointerim=0,stop=total(5000 iterations))
;start=Untitled design 1.ngd
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]+b12[0.206]*K[20:29]/
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]+b12*K[20:29]
$
(As we haven't figured out why the two-step method for continuous variables mentioned in the Chapter 9 didn't work in our case.) The second question is whether it is appropriate if we just specify the salary variable [K] as the continuous variable (rather than with discrete levels, e.g., K[0,1,2,3]) in the utility function, and do the D-efficient design in one step as below?
Design
;alts=alt1,alt2,alt3
;rows=36
;block=2
;eff=(mnl,d)
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]+b12[0.206]*K[20:29]
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]+b12*K[20:29]
$
Thanks much for your help!
Michelle
My questions are regarding dealing with continuous variables in Ngene.
The first question is about using the two-step method suggested in Chapter 9 of the manual. I wonder why one of my attributes (E) in the final design results has three levels (0,1,2), while the utility function I set for this attribute includes only two levels (0 and 1). The initial design results saved in the first step (without the salary variable, the continuous variable) didn't have this problem.
The initial design (the first step):
Design
;alts=alt1,alt2,alt3
;rows=18
;eff=(mnl,d)
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]/
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]
$
The second step for continuous variable:
Design
;alts=alt1,alt2,alt3
;rows=18
;eff=(mnl,d)
;alg=neldermead(nointerim=0,stop=total(5000 iterations))
;start=Untitled design 1.ngd
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]+b12[0.206]*K[20:29]/
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]+b12*K[20:29]
$
(As we haven't figured out why the two-step method for continuous variables mentioned in the Chapter 9 didn't work in our case.) The second question is whether it is appropriate if we just specify the salary variable [K] as the continuous variable (rather than with discrete levels, e.g., K[0,1,2,3]) in the utility function, and do the D-efficient design in one step as below?
Design
;alts=alt1,alt2,alt3
;rows=36
;block=2
;eff=(mnl,d)
;model:
U(alt1)=b1+b2[-0.354]*A[0,1,2]+b3[-0.831]*B[0,1,2]+b4[-0.567]*C[0,1,2]+b5[-0.068]*D[0,1,2]+b6[0.508]*E[1,0]+b7[-0.511]*F[0,1,2]+b8[0.204]*G[1,0]+b9[-0.343]*H[1,0]+b10[-0.723]*I[1,0]+b11[0.348]*J[1,0]+b12[0.206]*K[20:29]
U(alt2)=b1*A+b2*B+b4*C+b5*D+b6*E+b7*F+b8*G+b9*H+b10*I+b11*J[1,0]+b12*K[20:29]
$
Thanks much for your help!
Michelle