Dummy/condiction !!!!
Posted: Wed Jul 04, 2018 8:09 am
Hi everybody, as a newbie i'm a little bit confused.
I'm trying to design this "mnl-eff" for a pilot, analyzing 4 differnet options.
Problems arrived with EG and ST utilities.
In this two options i need some "constraints", within the choice model attributes [b]ACCPP and WTCCEG[/b can co-exist and when active WTHDEG [b] and CCHDEG[/b] must be zero, not to be considered in the evaluation, and the viceversa .
Similarly in ST when WTHDST is active WTCCST should be zero, and viceversa.
Currently I m not sure how to proceed, i have tried introduce dummies on attributes and condiction but it does not work.
By this way i'll attach the partial sintax that i've created until now.
every kind of suggestion and also a review on the written code is well acccepted!
Best regards
I'm trying to design this "mnl-eff" for a pilot, analyzing 4 differnet options.
Problems arrived with EG and ST utilities.
In this two options i need some "constraints", within the choice model attributes [b]ACCPP and WTCCEG[/b can co-exist and when active WTHDEG [b] and CCHDEG[/b] must be zero, not to be considered in the evaluation, and the viceversa .
Similarly in ST when WTHDST is active WTCCST should be zero, and viceversa.
Currently I m not sure how to proceed, i have tried introduce dummies on attributes and condiction but it does not work.
By this way i'll attach the partial sintax that i've created until now.
- Code: Select all
Design ?EFFICIENT
;alts= HRV,EG,ST,NM
;rows=12
;con
;eff=(mnl,d)
;model:
U(HRV)= bprice[-0.5]*PRICE.ref[2.0] +acch[-0.01]*ACCHR[10,20,30] +pth[-0.01]*PTHR[5,25,50] +blkh[-0.01]*BLKHR[10,20,30]+sk%h[-0.01]*SKEHR[0,20,60]/
U(EG)= b1[1.00] +bprice*PRICE.piv[-20%,0%,20%,40%]+acce[-0.01]*ACCPP[5,7,10]+pte[-0.01]*PTEG[10,20,40]+wthde[-0.05]*WTHDEG[60,360,720]+cchde[-0.10]*CCHDEG[3,5,8]+wtcce[-0.01]*WTCCEG[30,60,120]*i1[0.01]*ACCPP*CCHDEG +blke[0.01]*BLKEG[10,20,30]+sk%e[-0.01]*SKEG[0,20,60]/
U(ST)= b3[1.00] +bprice*PRICE.piv[-20%,0%,20%,40%]+accs[-0.01]*ACCST[5,7,10] +pts[-0.01]*PTST[5,10,20] +wthds[-0.05]*WTHDST[30,60,180] +cchds[-0.10]*CCHDST[0,2.5,5]+wtccs[-0.05]*WTCCST[30,60,120]+blks[0.01]*BLKST[10,20,30]+sk%s[-0.01]*SKEST[0,20,60]/
U(NM)= b4[1.00] +bprice*PRICE.piv[-20%,0%,20%,40%]+accn[-0.01]*ACCNM[10,15,20] +ptn[-0.01]*PTNM[10,25,50] +blkn[-0.01]*BLKNM[10,20,30]+sk%n[-0.01]*SKENM[0,20,60]
$
every kind of suggestion and also a review on the written code is well acccepted!
Best regards