Page 1 of 1

Unable to run the program

PostPosted: Tue Jul 06, 2021 8:18 pm
by CMA
When I try to run the following program on page 177 of the manual(Ngene 1.2 USER MANUAL & REFERENCE GUIDE), I get the error "The 'candidates' parameter of the Modified Federov algorithm is neither specified as a valid number, nor a The 'candidates' parameter of the Modified Federov algorithm is neither specified as a valid number, nor a valid file name or path. What could be wrong?
Code: Select all
Design
;alts = hotelA*, hotelB*
;rows = 12
;eff = (mnl,d)
;alg = mfederov(candidates = implicit_partial_profiles.csv)
;model:
U(hotelA) = b1[-0.01] * price[100,150,200,0] +
b2[-0.2] * stars[1,3,5,0] +
b3[-0.001] * distance[500,1000,1500,0] +
b4.dummy[0.3] * wifi[1,0] +
b5.dummy[0.2] * breakfast[1,0] +
b6.dummy[0.2] * pool[1,0] /
U(hotelB) = b1 * price +
b2 * stars +
b3 * distance +
b4 * wifi +
b5 * breakfast +
b6 * pool
$

Re: Unable to run the program

PostPosted: Sat Jul 10, 2021 8:28 am
by Michiel Bliemer
This error message may occur if it cannot find the file.
Did you run this syntax using the demonstration project? The CSV file is available within that project and Ngene should be able to find it. If you did not open the Demonstration project, then you can load the candidate set into Ngene by selecting File | Open from the menu and browsing to the place where the CSV file is stored on your computer.

Michiel

Re: Unable to run the program

PostPosted: Mon Jul 12, 2021 1:29 pm
by CMA
Thank you. I did what you said and I was able to execute it.