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$
Replication of the Design
Moderators: Andrew Collins, Michiel Bliemer, johnr
Re: Replication of the Design
I suppose specifying the seed for random draws would help. Try ;rseed (or ;bseed for Bayesian priors) in the manual.
Re: Replication of the Design
Placing rseed equal to some number does not seem to leed to replication. bseed does not seem applicable.
-
- Posts: 2055
- Joined: Tue Mar 31, 2009 4:13 pm
Re: Replication of the Design
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.
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.
Re: Replication of the Design
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.
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.
-
- Posts: 2055
- Joined: Tue Mar 31, 2009 4:13 pm
Re: Replication of the Design
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).