Unable to run the program

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
CMA
Posts: 38
Joined: Mon Jun 14, 2021 3:42 pm

Unable to run the program

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

Re: Unable to run the program

Post 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
CMA
Posts: 38
Joined: Mon Jun 14, 2021 3:42 pm

Re: Unable to run the program

Post by CMA »

Thank you. I did what you said and I was able to execute it.
Post Reply