Question with this warning

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Question with this warning

Postby Gengyang TU » Thu Sep 25, 2014 10:26 pm

Dear Ngeners,

Today after I run my design, Ngene gave me this warning: " warning - Defaulting to prior values for zero for the following priors'' ". But it doesn't tell me exactly which prior. Could anyone tell me why please?

Here is my design:
Code: Select all
Design


;alts(view) = alt1, alt2,SQ
;alts(nonview) = alt1, alt2,SQ
;rows = 12
;block=2
;eff = Fish(rp,d)
;fisher(Fish)=des1(view[0.6],nonview[0.4])




;model(view):

U(alt1) =        b2[n,(n,-1,0.05),(u,0.1,0.2)] * DisF[0,2,4] + b3[n,(n,-1.45,0.01),(u,0.2,0.4)] * DisP[0,0.5,1]+ b4[(n,3,1)] *Surf[-0.1,0,0.1] 
+  b5[n,(n,1.1,0.2),(u,0.2,0.3)]  *  view[0,1] + b6[n,(n,-9,1),(u,1,2)] * price[-0.15,-0.1,-0.05,0,0.05,0.1] + i1[(n,-1,0.02)]*DisF*DisP /

U(alt2) =        b2   * DisF    +   b3     *   DisP     +    b4  * Surf      +    b5  *view   +b6*price ++ i1*DisF*DisP   /


U(SQ) = b1[(n,1.34,0.2)]


;model(nonview):

U(alt1) =        b2[n,(n,-1,0.05),(u,0.1,0.2)] * DisF[0,2,4] + b3[n,(n,-1.45,0.01),(u,0.2,0.4)] * DisP[0,0.5,1]+ b4[(n,3,1)] *Surf[-0.1,0,0.1] 
+  b5[n,(n,1.1,0.2),(u,0.2,0.3)]  *  view[0,1] + b6[n,(n,-9,1),(u,1,2)] * price[-0.15,-0.1,-0.05,0,0.05,0.1] + i1[(n,-1,0.02)]*DisF*DisP /

U(alt2) =        b2   * DisF    +   b3     *   DisP     +    b4  * Surf      +    b5  *view   +b6*price ++ i1*DisF*DisP   /


U(SQ) = b1[(n,1.34,0.2)]




$


Thank you.
Gengyang TU
 
Posts: 6
Joined: Fri Sep 05, 2014 9:42 pm

Re: Question with this warning

Postby Gengyang TU » Fri Sep 26, 2014 9:16 pm

Problem is solved!
Gengyang TU
 
Posts: 6
Joined: Fri Sep 05, 2014 9:42 pm

Re: Question with this warning

Postby Rumana » Thu Jul 11, 2019 7:01 pm

Hi Gengyang TU,

I have also got similar warning sign like you 'Warning: Defaulting to prior values of zero for the following priors: '0''

Would you be so kind to let me know how did you solve the problem?

Here is my Syntax, if it helps:
Design
;alts = TF1, TF2,optout
;rows = 36
;eff = (mnl,d,fixed)
;block= 9

;model:
U(TF1) = 0.0914+b1[-0.0454]*PP[39, 49, 59] + b2[-0.287]*PTT20 [0,1]+ b3[0.043]* PTT40[0,1]+ b4[0.153]*PTTUN[0,1] + b5[0.11]*ED10[0,1]+ b6[0.178]*ED20[0,1]+ b7[0.196]*ED30[0,1] + b8[0.0769]*EFT30[0,1]+ b9[0.168]*EFT60[0,1]+ b10[-0.177]*BP25[0,1] + b11[-0.101]*BP50[ 0,1]+ b12[-0.0152]*BP75[0,1] + b13[0.1]*BFT10 [0,1]+ b14[0.212]*BFT20[0,1]+ b15[0.221]*BFT30[0,1]/
U(TF2) = 0.0914+b1*PP + b2*PTT20+ b3*PTT40+ b4*PTTUN + b5*ED10 + b6*ED20 + b7*ED30 + b8*EFT30+ b9*EFT60 + b10*BP25+ b11*BP50+ b12*BP75 + b13*BFT10+ b14*BFT20+ b15*BFT30/
U(optout)=b1*PPO[39]
$

Thanking you in advance,
Rumana
Rumana
 
Posts: 2
Joined: Mon Feb 25, 2019 9:56 pm

Re: Question with this warning

Postby Michiel Bliemer » Fri Jul 12, 2019 9:29 pm

Dear Rumana,

This warning always appears in Ngene when one or more parameters do not have an associated prior.
In your case, you did not formulate your alternative-specific constants properly, you forgot to give your constant value 0.0914 a parameter name. I added parameter b0 in the utility functions below, which now has a prior equal to 0.0914.

U(TF1) = b0[0.0914]+b1[-0.0454]*PP[39, 49, 59] + ... /
U(TF2) = b0+b1*PP + ... /
U(optout)=b1*PPO[39]

Michiel
Michiel Bliemer
 
Posts: 1705
Joined: Tue Mar 31, 2009 4:13 pm

Re: Question with this warning

Postby Rumana » Mon Jul 15, 2019 4:37 pm

Dear Michiel,

I ran the syntax with the changes that you've suggested and I didn't get any warning.

Thank you very much for your help. I really appreciate it.

Best Regards,
Rumana
Rumana
 
Posts: 2
Joined: Mon Feb 25, 2019 9:56 pm


Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 5 guests

cron