Replication of the Design

This forum is for posts that specifically focus on the Windows desktop version of Ngene (i.e. all version 1.x releases).

Moderators: Andrew Collins, Michiel Bliemer, johnr

Post Reply
kelvin
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Replication of the Design

Post by kelvin »

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$
miq
Posts: 23
Joined: Thu Mar 26, 2009 6:13 am

Re: Replication of the Design

Post by miq »

I suppose specifying the seed for random draws would help. Try ;rseed (or ;bseed for Bayesian priors) in the manual.
kelvin
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Re: Replication of the Design

Post by kelvin »

Placing rseed equal to some number does not seem to leed to replication. bseed does not seem applicable.
Michiel Bliemer
Posts: 2055
Joined: Tue Mar 31, 2009 4:13 pm

Re: Replication of the Design

Post by Michiel Bliemer »

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.
kelvin
Posts: 3
Joined: Tue Feb 15, 2011 11:39 pm

Re: Replication of the Design

Post by kelvin »

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.
Michiel Bliemer
Posts: 2055
Joined: Tue Mar 31, 2009 4:13 pm

Re: Replication of the Design

Post by Michiel Bliemer »

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).
Post Reply