design with a continuous attribute
Posted: Wed Oct 30, 2013 1:59 am
I am having a first go at generating a design with a continuous attribute (price).
I have a problem - with my attempt always crashing ngene.
I start with an efficient design which seems to work ok.
I save this [initial.ngd] and then run:
This always crashes ngene (after c.250 iterations)
But if I remove the steps in the continuous price attribute:
and use:
then it works.
Any advice on where I am going wrong here?
thanks
Dan
I have a problem - with my attempt always crashing ngene.
I start with an efficient design which seems to work ok.
- Code: Select all
Design
;alts = alt1, alt2, alt3
;rows = 40
;block=4
;eff=(mnl,d)
;model:
U(alt1) = s[(n,0.4,0.2)] *saved[3,7,10,14] + r[(n,-0.05,0.02)]*risk[1,5,10,20]+ p[(n,-0.5,0.2)]*price[1,2.5,7.5,10] /
U(alt2) = s*saved + r*risk + p*price $
I save this [initial.ngd] and then run:
- Code: Select all
Design
;alts = alt1, alt2, alt3
;rows = 40
;block=4
;eff=(mnl,d)
;alg = neldermead(nointerim=0, stop=total(5000 iterations))
;start = initial.ngd
;model:
U(alt1) = s[(n,0.4,0.2)] *saved[3,7,10,14] + r[(n,-0.05,0.02)]*risk[1,5,10,20]+ p[(n,-0.5,0.2)]*price[1:10:1] /
U(alt2) = s[(n,0.4,0.2)] *saved + r[(n,-0.05,0.02)]*risk + p *price[1:10:1] $
This always crashes ngene (after c.250 iterations)
But if I remove the steps in the continuous price attribute:
- Code: Select all
*price[1:10:1]
and use:
- Code: Select all
*price[1:10]
then it works.
Any advice on where I am going wrong here?
thanks
Dan