I want to generate a pivot design assuming a panel error component model. Using the following code, I had:
1. very good d error and s estimate for the MNL model: d error=0.0113 and s estimate= 13.972
2. good d error, but very bad s estimate for the EC model: d error=0.180 and s estimate=124704.122. The s estimate was so high because of the s1 parameter in the EC model.
3. the software was not able to compute the d error and the s estimate. I had undefined estimates. the point is that I need the EC PANEL MODEL.
- Code: Select all
Design
;alts(64) = alt1, alt2, alt3
;alts(66) = alt1, alt2, alt3
;alts(68) = alt1, alt2, alt3
;alts(70) = alt1, alt2, alt3
;alts(72) = alt1, alt2, alt3
;alts(74) = alt1, alt2, alt3
;alts(76) = alt1, alt2, alt3
;alts(78) = alt1, alt2, alt3
;alts(80) = alt1, alt2, alt3
;alts(82) = alt1, alt2, alt3
;alts(84) = alt1, alt2, alt3
;alts(86) = alt1, alt2, alt3
;alts(88) = alt1, alt2, alt3
;alts(90) = alt1, alt2, alt3
;alts(92) = alt1, alt2, alt3
;alts(94) = alt1, alt2, alt3
;alts(96) = alt1, alt2, alt3
;alts(98) = alt1, alt2, alt3
;rows = 12
;eff = fish(mnl,d,mean)
;rep = 500
;bdraws = halton(300)
;rdraws = halton(300)
;fisher(fish) = design1(64[0.22], 66[0.06], 68[0.14], 70[0.04], 72[0.06], 74[0.06], 76[0.05], 78[0.06], 80[0.01], 82[0.03], 84[0.05], 86[0.05], 88[0.04], 90[0.01], 92[0.01], 94[0.05], 96[0.01], 98[0.05])
;model(64):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[64] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(66):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[66] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(68):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[68] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(70):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[70] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(72):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[72] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(74):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[74] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(76):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[76] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(78):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[78] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(80):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[80] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(82):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[82] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(84):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[84] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(86):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[86] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(88):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[88] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(90):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[90] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(92):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[92] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(94):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[94] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(96):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[96] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)]
;model(98):
U(alt1) = b1[-2.72] + b2[(n,-0.0172,0.0031)] * A.ref[98] + b3[(n,3.61,0.333)] * B.ref[0.5] /
U(alt2) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] /
U(alt3) = b2[(n,-0.0172,0.0031)] * A.piv[-80%,-60%,-40%] + b3[(n,3.61,0.333)] * B.piv[-90%,-80%,-50%,0%] + b4[(n,-0.0252,0.0035)] * C[15,30,50,80] + s1[ec,(u,0.1,0.2)] $
Do you have any idea why I got these very bad results?
I maybe know why. What should I put inside the parentheses in the s1 term? The beta parameter or the standard deviation that I got from my pilot study? I put the standard deviation, but I'm not sure this is right.
Thank you.
Best
Simone