Bug?

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Bug?

Postby Ben Beardmore » Wed Dec 01, 2010 3:29 am

I'm not sure if it is a bug in my code, or in the application.

When I try to produce an ood design with the following code, It appears to run, and finish normally but no design appears:

Design
;alts = alt1, alt2,none
;rows = 36
;orth = ood
;model:
U(alt1) = b1
+ b2.dummy[0|0] * A[0,1,2]
+ b3.dummy[0|0] * B[0,1,2]
+ b4.dummy[0|0|0|0|0] * C[0,1,2,3,4,5]
+ b5[0] * D[0,1,2,3,4,5] /
U(alt1) = b10
+ b2.dummy[0|0] * A[0,1,2]
+ b3.dummy[0|0] * B[0,1,2]
+ b4.dummy[0|0|0|0|0] * C[0,1,2,3,4,5]
+ b5[0] * D[0,1,2,3,4,5] $


Here is the output:
Warning: Defaulting to prior values of zero for the following priors: 'b1, b10'

Finished.


However, there is no design produced.

Any help would be appreciated.
Ben Beardmore
 
Posts: 9
Joined: Wed Oct 21, 2009 2:52 pm

Re: Bug?

Postby Michiel Bliemer » Wed Dec 01, 2010 9:52 am

There is an error in your code. In the model utility functions, you specified twice 'alt1' (this often happens because of copy & paste actions), so change the second 'alt1' into 'alt2', and a design will be generated. So it is not a bug, but bad error reporting of Ngene, which we should fix.
Michiel Bliemer
 
Posts: 1885
Joined: Tue Mar 31, 2009 4:13 pm

Re: Bug?

Postby Ben Beardmore » Thu Dec 02, 2010 3:44 am

Thanks!

Sometimes it is impossible to see what is right in front of your eyes.
Ben Beardmore
 
Posts: 9
Joined: Wed Oct 21, 2009 2:52 pm


Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 36 guests