Apply multiplier to coefficient

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Apply multiplier to coefficient

Postby xiaoxiadong » Thu Mar 21, 2019 11:53 pm

Dear Ngene Team,

I am coding a fractional factorial design with two modes, A and B. I tried to apply a multiplier of 1.5 to one of the coefficients, b4, but Ngene did not seem to recognize the syntax. it returned the warning message: Error: Wrong suffix '.5' was used. Please find my code below. I'd appreciate any advice and guidance you may have. Thank you!

;alts = A, B
;rows = 72
;fact
;model:

U(A) = b1 + b2 * costA[5,10,15] + b3 * waitA[2,5,10] + b4 * timeA[10,20,30] /
U(B) = b2 * costB[1,2,3] + b4 * 1.5 * waitB[3,6,9] + b4 * timeB[20,40,60]
xiaoxiadong
 
Posts: 3
Joined: Fri Feb 15, 2019 11:46 am

Re: Apply multiplier to coefficient

Postby Michiel Bliemer » Fri Mar 22, 2019 9:10 am

Three ways of doing this:

1. You can multiply the levels with 1.5, i.e. waitB[4.5,9,13.5]
2. You can divide b4 by 1.5 after model estimation
3. You can make this multiplier an attribute, i.e. b4 * mult[1.5] * waitB[3,6,9]

Note that these utility functions are essentially ignored when you create a random factorial design, they become important when you look for an efficient design.

Michiel
Michiel Bliemer
 
Posts: 1885
Joined: Tue Mar 31, 2009 4:13 pm


Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 30 guests