2 or more covariates - howto?
Posted: Mon Nov 11, 2013 2:05 am
dear all,
i am trying to find a d-efficient design for a study set-up with several covariates known upfront. unfortunately i am not able to find a design that suits... even with a very simple dummy-example ngene would not find a design... anyone able to locate the problem with the code below?
thank you for any hints!! best, sven
Design
;alts(m1) = a1, a2, a3, a4
;alts(m2) = a1, a2, a3, a4
;alts(m3) = a1, a2, a3, a4
;alts(m4) = a1, a2, a3, a4
;rows=12
;eff=F1(mnl,d)
;fisher(F1)=des1(m1[0.1], m2[0.4], m3[0.25], m4[0.25])
;model(m1):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1]
;model(m2):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2]
;model(m3):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1]
;model(m4):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[2] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[2] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2]+ bc2*VC2.covar[2]
$
i am trying to find a d-efficient design for a study set-up with several covariates known upfront. unfortunately i am not able to find a design that suits... even with a very simple dummy-example ngene would not find a design... anyone able to locate the problem with the code below?
thank you for any hints!! best, sven
Design
;alts(m1) = a1, a2, a3, a4
;alts(m2) = a1, a2, a3, a4
;alts(m3) = a1, a2, a3, a4
;alts(m4) = a1, a2, a3, a4
;rows=12
;eff=F1(mnl,d)
;fisher(F1)=des1(m1[0.1], m2[0.4], m3[0.25], m4[0.25])
;model(m1):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[1]
;model(m2):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[1] + bc2*VC2.covar[2]
;model(m3):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[1]
;model(m4):
U(a1) = b1[0.1]*V1[1,2,3]+b2[0.2]*V2[1,2,3,4,5,6] + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[2] /
U(a2) = b1*V1 + b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2] + bc2*VC2.covar[2] /
U(a3) = b1*V1+b2*V2 + bi1*V1*V2
+ bc1*VC1.covar[2]+ bc2*VC2.covar[2]
$