Replication of the Design

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Replication of the Design

Postby kelvin » Thu Feb 17, 2011 9:26 pm

If I do a simple mnl design as below. Can I change/add settings so that it will give me exactly the same result each time?

Design
;alts = alt1, alt2
;rows = 4
;eff = (mnl,d)
;alg=swap(random=500, swap=1, swaponimprov=40, reset=10000, resetinc=5000,stop = total(10000 iterations)))
;model:
U(alt1) = b1[0] + b2[1.2] * A[0,1] + b3[1] * B[0,1] /
U(alt2) = b2 * A + b3 * B$
kelvin
 
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Re: Replication of the Design

Postby miq » Fri Feb 18, 2011 5:25 am

I suppose specifying the seed for random draws would help. Try ;rseed (or ;bseed for Bayesian priors) in the manual.
miq
 
Posts: 22
Joined: Thu Mar 26, 2009 6:13 am

Re: Replication of the Design

Postby kelvin » Fri Feb 18, 2011 6:38 pm

Placing rseed equal to some number does not seem to leed to replication. bseed does not seem applicable.
kelvin
 
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Re: Replication of the Design

Postby Michiel Bliemer » Sat Feb 19, 2011 9:06 am

The ;rseed and ;bseed commands are used to ensure that a design will always be evaluated using the same draws.

For the search algorithms, there is no such command (as far as I know, Andrew may know some hidden features), as it does not seem very useful. If you want to keep a design, you can just save it to the project.

But perhaps you have a good reason for wanting to do this? I would be curious to know.
Michiel Bliemer
 
Posts: 1742
Joined: Tue Mar 31, 2009 4:13 pm

Re: Replication of the Design

Postby kelvin » Sun Feb 20, 2011 3:20 am

Point taken. I suppose is only really useful if the user wants to understand the impact of changes in other
settings such as modifications in the priors etc. i.e. make a change, then evaluate what happens to the design.
For example, one might expect that with a small change in a prior the design will remain the same.
I guess if the algorithm is able to find a truely globally optimal design then it would not matter. But in finite runs,
it would be nice to pin down whether what is happening is due to random influences, or whether it is
due to changes in the parameters governing the design.
kelvin
 
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Re: Replication of the Design

Postby Michiel Bliemer » Sun Feb 20, 2011 4:56 am

If you would be mainly interested in analyzing what happens to a specific design when the priors would change, then this can be done by saving the design, and use 'alg = eval' to assess the design with different priors. But from what I understand, you are more interested to see what happens to the optimal design. In that respect, I do not think that there is a way now in Ngene to really know (only if you let it run very long time).
Michiel Bliemer
 
Posts: 1742
Joined: Tue Mar 31, 2009 4:13 pm


Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 14 guests