Implicit partial profiles

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Implicit partial profiles

Postby psalazar » Sat Jun 25, 2022 7:59 pm

Dear all,

I'm trying to create implicit partial profiles as follows:

;alts = hotel1*, hotel2*
;rows = 18
;eff = (mnl,d)
;alg = mfederov(candidates = overlap3.csv)
U(hotel1) = b1[-0.08] * price[80,120,160]
+ b2.dummy[0.4|0.5] * stars[3,5,1]
+ b3[-0.0002] * dist[500,1500,2500]
+ b4.dummy[0.3] * breakfast[1,0]
+ b5.dummy[0.2] * wifi[1,0]
+ b6.dummy[0.1] * pool[1,0]
U(hotel2) = b1 * price
+ b2 * stars
+ b3 * dist
+ b4 * breakfast
+ b5 * wifi
+ b6 * pool

This is actually an example from the course I took with Prof. Bliemer, at the University of Leeds. When I try to run it, I'm getting the following error: "Error: The 'candidates' parameter of the Modified Fedorov algorithm is neither specified as a valid number, nor a valid file name or path."

The csv file is in the right folder. Any idea what's going on?

Posts: 15
Joined: Fri Jun 24, 2022 1:42 am

Re: Implicit partial profiles

Postby Michiel Bliemer » Mon Jun 27, 2022 11:52 am

The script does not specify a path name so you first need to load the CSV file in the project. Use File | Open from the menu and then select the overlap3.csv. Then run the script, this should work.

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

Re: Implicit partial profiles

Postby psalazar » Mon Jun 27, 2022 6:55 pm

Dear Michael,

Many thanks! I'm sorry I missed that.

Best wishes,

Posts: 15
Joined: Fri Jun 24, 2022 1:42 am

Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 1 guest