Interactions specification

This forum is for posts covering broader stated choice experimental design issues.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Interactions specification

Postby ankaselivanka123 » Wed Apr 27, 2016 1:22 am

Hello all,

I am trying to generate an efficient design to estimate all possible interactions using the normally distributed priors for the main effects; overall there are 100 parameters for the model with all 2-way interactions. I have 5 attributes with 3 levels each, dummy coded. When I input my script(see below), Ngene shows an error: Two identically named attributes do not have consistently specified levels: 'alt1.mobility', 'alt1.mobility'.
Could you please advise me upon this issue?

Thanks in advance!

Design
;alts=alt1, alt2
;rows=200
;block=10
;eff=(mnl,d, mean)
;bdraws=halton(500)
;model:
U(alt1)=b1+t1.dummy[(n,-0.16,0.08)|(n,-1.31,0.67)]*mobility[1,2,3]+
t2.dummy[(n,-1.3,0.66)|(n,-0.96,0.49)]*selfcare[1,2,3]+
t3.dummy[(n,0.51,0.26)|(n,-1.55,0.79)]*usualactivity[1,2,3]+
t4.dummy[(n,-0.37,0.19)|(n,-0.01,0.00)]*pain[1,2,3]+
t5.dummy[(n,-1.31,0.67)|(n,-0.81,0.41)]*depression[1,2,3]+
i1*mobility[1]*selfcare[1]+
i2*mobility[1]*selfcare[2]+
i3*mobility[1]*selfcare[3]+
i4*mobility[2]*selfcare[1]+
i5*mobility[2]*selfcare[2]+
i6*mobility[2]*selfcare[3]+
i7*mobility[3]*selfcare[1]+
i8*mobility[3]*selfcare[2]+
i9*mobility[3]*selfcare[3]+
i10*mobility[1]*usualactivity[1]+
i11*mobility[1]*usualactivity[2]+
i12*mobility[1]*usualactivity[3]+
i13*mobility[2]*usualactivity[1]+
i14*mobility[2]*usualactivity[2]+
i15*mobility[2]*usualactivity[3]+
i16*mobility[3]*usualactivity[1]+
i17*mobility[3]*usualactivity[2]+
i18*mobility[3]*usualactivity[3]+
i19*mobility[1]*pain[1]+
i20*mobility[1]*pain[2]+
i21*mobility[1]*pain[3]+
i22*mobility[2]*pain[1]+
i23*mobility[2]*pain[2]+
i24*mobility[2]*pain[3]+
i25*mobility[3]*pain[1]+
i26*mobility[3]*pain[2]+
i27*mobility[3]*pain[3]+
i28*mobility[1]*depression[1]+
i29*mobility[1]*depression[2]+
i30*mobility[1]*depression[3]+
i31*mobility[2]*depression[1]+
i32*mobility[2]*depression[2]+
i33*mobility[2]*depression[3]+
i34*mobility[3]*depression[1]+
i35*mobility[3]*depression[2]+
i36*mobility[3]*depression[3]+
i37*selfcare[1]*usualactivity[1]+
i38*selfcare[1]*usualactivity[2]+
i39*selfcare[1]*usualactivity[3]+
i40*selfcare[2]*usualactivity[1]+
i41*selfcare[2]*usualactivity[2]+
i42*selfcare[2]*usualactivity[3]+
i43*selfcare[3]*usualactivity[1]+
i44*selfcare[3]*usualactivity[2]+
i45*selfcare[3]*usualactivity[3]+
i46*selfcare[1]*pain[1]+
i47*selfcare[1]*pain[2]+
i48*selfcare[1]*pain[3]+
i49*selfcare[2]*pain[1]+
i50*selfcare[2]*pain[2]+
i51*selfcare[2]*pain[3]+
i52*selfcare[3]*pain[1]+
i53*selfcare[3]*pain[2]+
i54*selfcare[3]*pain[3]+
i55*selfcare[1]*depression[1]+
i56*selfcare[1]*depression[2]+
i57*selfcare[1]*depression[3]+
i58*selfcare[2]*depression[1]+
i59*selfcare[2]*depression[2]+
i60*selfcare[2]*depression[3]+
i61*selfcare[3]*depression[1]+
i62*selfcare[3]*depression[2]+
i63*selfcare[3]*depression[3]+
i64*usualactivity[1]*pain[1]+
i65*usualactivity[1]*pain[2]+
i66*usualactivity[1]*pain[3]+
i67*usualactivity[2]*pain[1]+
i68*usualactivity[2]*pain[2]+
i69*usualactivity[2]*pain[3]+
i70*usualactivity[3]*pain[1]+
i71*usualactivity[3]*pain[2]+
i72*usualactivity[3]*pain[3]+
i73*usualactivity[1]*depression[1]+
i74*usualactivity[1]*depression[2]+
i75*usualactivity[1]*depression[3]+
i76*usualactivity[2]*depression[1]+
i77*usualactivity[2]*depression[2]+
i78*usualactivity[2]*depression[3]+
i79*usualactivity[3]*depression[1]+
i80*usualactivity[3]*depression[2]+
i81*usualactivity[3]*depression[3]+
i82*pain[1]*depression[1]+
i83*pain[1]*depression[2]+
i84*pain[1]*depression[3]+
i85*pain[2]*depression[1]+
i86*pain[2]*depression[2]+
i87*pain[2]*depression[3]+
i88*pain[3]*depression[1]+
i89*pain[3]*depression[2]+
i90*pain[3]*depression[3]
/
U(alt2)=t1.dummy*mobility[1,2,3]+
t2.dummy*selfcare[1,2,3]+
t3.dummy*usualactivity[1,2,3]+
t4.dummy*pain[1,2,3]+
t5.dummy*depression[1,2,3]+
i1*mobility[1]*selfcare[1]+
i2*mobility[1]*selfcare[2]+
i3*mobility[1]*selfcare[3]+
i4*mobility[2]*selfcare[1]+
i5*mobility[2]*selfcare[2]+
i6*mobility[2]*selfcare[3]+
i7*mobility[3]*selfcare[1]+
i8*mobility[3]*selfcare[2]+
i9*mobility[3]*selfcare[3]+
i10*mobility[1]*usualactivity[1]+
i11*mobility[1]*usualactivity[2]+
i12*mobility[1]*usualactivity[3]+
i13*mobility[2]*usualactivity[1]+
i14*mobility[2]*usualactivity[2]+
i15*mobility[2]*usualactivity[3]+
i16*mobility[3]*usualactivity[1]+
i17*mobility[3]*usualactivity[2]+
i18*mobility[3]*usualactivity[3]+
i19*mobility[1]*pain[1]+
i20*mobility[1]*pain[2]+
i21*mobility[1]*pain[3]+
i22*mobility[2]*pain[1]+
i23*mobility[2]*pain[2]+
i24*mobility[2]*pain[3]+
i25*mobility[3]*pain[1]+
i26*mobility[3]*pain[2]+
i27*mobility[3]*pain[3]+
i28*mobility[1]*depression[1]+
i29*mobility[1]*depression[2]+
i30*mobility[1]*depression[3]+
i31*mobility[2]*depression[1]+
i32*mobility[2]*depression[2]+
i33*mobility[2]*depression[3]+
i34*mobility[3]*depression[1]+
i35*mobility[3]*depression[2]+
i36*mobility[3]*depression[3]+
i37*selfcare[1]*usualactivity[1]+
i38*selfcare[1]*usualactivity[2]+
i39*selfcare[1]*usualactivity[3]+
i40*selfcare[2]*usualactivity[1]+
i41*selfcare[2]*usualactivity[2]+
i42*selfcare[2]*usualactivity[3]+
i43*selfcare[3]*usualactivity[1]+
i44*selfcare[3]*usualactivity[2]+
i45*selfcare[3]*usualactivity[3]+
i46*selfcare[1]*pain[1]+
i47*selfcare[1]*pain[2]+
i48*selfcare[1]*pain[3]+
i49*selfcare[2]*pain[1]+
i50*selfcare[2]*pain[2]+
i51*selfcare[2]*pain[3]+
i52*selfcare[3]*pain[1]+
i53*selfcare[3]*pain[2]+
i54*selfcare[3]*pain[3]+
i55*selfcare[1]*depression[1]+
i56*selfcare[1]*depression[2]+
i57*selfcare[1]*depression[3]+
i58*selfcare[2]*depression[1]+
i59*selfcare[2]*depression[2]+
i60*selfcare[2]*depression[3]+
i61*selfcare[3]*depression[1]+
i62*selfcare[3]*depression[2]+
i63*selfcare[3]*depression[3]+
i64*usualactivity[1]*pain[1]+
i65*usualactivity[1]*pain[2]+
i66*usualactivity[1]*pain[3]+
i67*usualactivity[2]*pain[1]+
i68*usualactivity[2]*pain[2]+
i69*usualactivity[2]*pain[3]+
i70*usualactivity[3]*pain[1]+
i71*usualactivity[3]*pain[2]+
i72*usualactivity[3]*pain[3]+
i73*usualactivity[1]*depression[1]+
i74*usualactivity[1]*depression[2]+
i75*usualactivity[1]*depression[3]+
i76*usualactivity[2]*depression[1]+
i77*usualactivity[2]*depression[2]+
i78*usualactivity[2]*depression[3]+
i79*usualactivity[3]*depression[1]+
i80*usualactivity[3]*depression[2]+
i81*usualactivity[3]*depression[3]+
i82*pain[1]*depression[1]+
i83*pain[1]*depression[2]+
i84*pain[1]*depression[3]+
i85*pain[2]*depression[1]+
i86*pain[2]*depression[2]+
i87*pain[2]*depression[3]+
i88*pain[3]*depression[1]+
i89*pain[3]*depression[2]+
i90*pain[3]*depression[3]

$
ankaselivanka123
 
Posts: 12
Joined: Fri Nov 20, 2015 8:10 pm

Re: Interactions specification

Postby johnr » Wed Apr 27, 2016 8:39 am

Hi

This post is about Ngene syntax, not design theory or designs in general. Can you please re-post it the other section of the forum specific to Ngene and Ngene syntax and we will answer the question.

Thanks

John
johnr
 
Posts: 171
Joined: Fri Mar 13, 2009 7:15 am


Return to Choice experiments - general

Who is online

Users browsing this forum: No registered users and 13 guests