I'm writing to ask for advice regarding Ngene codes. This is my first time using Ngene. While this is a challenging task to me, it may be quite dull to most of experts.
The design consists of 3 alternatives (standard of care, treatment A, treatment B) with 7 attributes (bm, aff, hypocalc, mvf, osteonerc, admin, cost). The standard of care (std) is presented with 7 attributes with a reference level each. An error message keeps appearing that the attributes have a wrong number of levels. The codes I've tries are shown below:
- Code: Select all
Design
;alt=std, trtA, trtB
;rows=24
;block=2
;eff=(mnl, d, mean)
;alg=swap(stop=total(600mins))
;model:
U(std)=b1.d[0.3|0.2|0.1]*bm[3]
+b2.d[0.2|0.1]*aff[0]
+b3.d[n,0.0,0.1]*hypocalc[0]
+b4.d[0.3|0.2|0.1]*mvf[0]
+b5.d[0.3|0.2|0.1]*osteonecr[0]
+b6.d[n,0.0,0.1]*admin[0]
+b7.d[0.3|0.2|0.1]*cost[0] /
U(trtA)=b1*bm1[3,2,1,0]
+b2*aff1[2,1,0]
+b3*hypocalc1[1,0]
+b4*mvf1[3,2,1,0]
+b5*osteonecr1[3,2,1,0]
+b6*admin1[2,1]
+b7*cost1[3,2,1,0] /
U(trtB)=b1*bm1
+b2*aff1
+b3*hypocalc1
+b4*mvf1
+b5*osteonecr1
+b6*admin1
+b7*cost1
? all the attribute levels are dummy coded
? b1(bm), b4(mvf), b5(osteonecr), b7(cost) have 4 levels each (ordinal)
? b2(aff) has 3 levels (ordinal)
? b3(hypocalc) has 2 levels (categorical - yes/no)
? b6(admin) have 3 levels (categorical - infusion, injection, NA)
? b1, b2, b4, b5, b7 are random parameters with Beyesian priors
? b1, b2, b4, b5, b7: the first attribute level has been assigned a prior parameter value of 0.3, the second 0.2, the third 0.3, and the final omitted level, a value of zero
? b3, b6: random parameters following a normal distribution with mean 0.0 and SD 0.1
$
The codes above did not run, so I referred to pg160 in Ngene manual and tried different strategies including as follows.
U(std)=b1[0.1]*bm.ref[3]+…/
U(trtA)=b1*bm.piv[0,-1,-2,-3]+…/
U(trtB)=b1*bm.piv+…$
I am stuck and would like some guidance. Please review. Any feedback would be greatly appreciated.
Thank you,
Jaein