by neeraj85 » Thu Apr 30, 2015 8:48 pm
Thank you sir.
I tried to incorporate the suggestions received from you.
However, I am getting an runtime error stating --> Error: Only one ';fisher' property can be specified at this time.
Can you please let me know how should I resolve the issue.
Following is my script:
Design
;alts(Cat1) = alt1*, alt2*, alt3*
;alts(Cat2) = alt1*, alt2*, alt3*
;alts(Cat3) = alt1*, alt2*, alt3*
;alts(Cat4) = alt1*, alt2*, alt3*
;alts(Cat5) = alt1*, alt2*, alt3*
;alts(Cat6) = alt1*, alt2*, alt3*
;alts(Cat7) = alt1*, alt2*, alt3*
;alts(Cat8) = alt1*, alt2*, alt3*
;alts(Cat9) = alt1*, alt2*, alt3*
;alts(Cat10) = alt1*, alt2*, alt3*
;alts(Cat11) = alt1*, alt2*, alt3*
;alts(Cat12) = alt1*, alt2*, alt3*
;rows = 10
;eff = fish1(mnl,d,mean)
;rdraws = gauss(3)
;bdraws = gauss(3)
;rep = 1000
;fisher(fish1) = design1(Cat1[0.191], Cat2[0.163], Cat3[0.207], Cat4[0.289], Cat5[0.134], Cat6[0.016])
;fisher(fish2) = design1(Cat7[0.191], Cat8[0.163], Cat9[0.207], Cat10[0.289], Cat11[0.134], Cat12[0.016])
;model(Cat1):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[7.5] + b3[(n,-0.0443,0.0145)] * tts.ref[2] + b4[(n,-0.0239,0.0161)] * sn.ref[5] + b5[(n,-0.715,0.196)] * vr.ref[0.85]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat2):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[22.5] + b3[(n,-0.0443,0.0145)] * tts.ref[6] + b4[(n,-0.0239,0.0161)] * sn.ref[12] + b5[(n,-0.715,0.196)] * vr.ref[2.45]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat3):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[45] + b3[(n,-0.0443,0.0145)] * tts.ref[11] + b4[(n,-0.0239,0.0161)] * sn.ref[20] + b5[(n,-0.715,0.196)] * vr.ref[5.3]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat4):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[75] + b3[(n,-0.0443,0.0145)] * tts.ref[19] + b4[(n,-0.0239,0.0161)] * sn.ref[30] + b5[(n,-0.715,0.196)] * vr.ref[12.0]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat5):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[105] + b3[(n,-0.0443,0.0145)] * tts.ref[26] + b4[(n,-0.0239,0.0161)] * sn.ref[42] + b5[(n,-0.715,0.196)] * vr.ref[19.3]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat6):
U(alt1) = b11[0] + b2[(n,-0.142,0.0239)] * tt.ref[135] + b3[(n,-0.0443,0.0145)] * tts.ref[34] + b4[(n,-0.0239,0.0161)] * sn.ref[50] + b5[(n,-0.715,0.196)] * vr.ref[21.0]/
U(alt2) = b22[(n,-0.166,0.191)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]/
U(alt3) = b33[(n,-0.183,0.193)] + b2[(n,-0.142,0.0239)] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b3[(n,-0.0443,0.0145)] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b4[(n,-0.0239,0.0161)] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b5[(n,-0.715,0.196)] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%]
;model(Cat7):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[7.5] + b91[n,-2.2562,1.2533] * tts.ref[2] + b92[n,-3.0938,2.9022] * sn.ref[5] + b93[n,-2.6741,3.0650] * vr.ref[0.85] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2
;model(Cat8):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[22.5] + b91[n,-2.2562,1.2533] * tts.ref[6] + b92[n,-3.0938,2.9022] * sn.ref[12] + b93[n,-2.6741,3.0650] * vr.ref[2.45] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2
;model(Cat9):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[45] + b91[n,-2.2562,1.2533] * tts.ref[11] + b92[n,-3.0938,2.9022] * sn.ref[20] + b93[n,-2.6741,3.0650] * vr.ref[5.3] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2
;model(Cat10):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[75] + b91[n,-2.2562,1.2533] * tts.ref[19] + b92[n,-3.0938,2.9022] * sn.ref[30] + b93[n,-2.6741,3.0650] * vr.ref[12.0] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2
;model(Cat11):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[105] + b91[n,-2.2562,1.2533] * tts.ref[26] + b92[n,-3.0938,2.9022] * sn.ref[42] + b93[n,-2.6741,3.0650] * vr.ref[19.3] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2
;model(Cat12):
U(alt1) = b90[n,-1.7020,1.2635] * tt.ref[135] + b91[n,-2.2562,1.2533] * tts.ref[34] + b92[n,-3.0938,2.9022] * sn.ref[50] + b93[n,-2.6741,3.0650] * vr.ref[21.0] + s1[ec,u(0.2,0.8)]/
U(alt2) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s1 + s2[ec,u(0.5,1.0)]/
U(alt3) = b90[n,-1.7020,1.2635] * tt.piv[-20%, -10%, 0%, 10%, 20%] + b91[n,-2.2562,1.2533] * tts.piv[-50%, -25%, 0%, 25%, 50%] + b92[n,-3.0938,2.9022] * sn.piv[-50%, -25%, 0%, 25%, 50%] + b93[n,-2.6741,3.0650] * vr.piv[-25%, -12.5%, 0%, 12.5%, 25%] + s2 $
Neeraj