Three-level nested logit in Biogeme

539 views
Skip to first unread message

mengying fu

unread,
Mar 22, 2018, 3:36:51 AM3/22/18
to Biogeme
Dear all,

Can Biogeme perform three-level (multi-level) nested logit? If it does, could you please let me know where I can find the instruction to write the syntax? 

Thank you in advance!

Best regards,
Mengying

Bierlaire Michel

unread,
Mar 22, 2018, 4:41:00 AM3/22/18
to jennife...@gmail.com, Bierlaire Michel, Biogeme
The nested logit model that is precoded in biogeme is a one level nested. 
http://biogeme.epfl.ch/examples/swissmetro/python/09nested.py
In general, it is not necessary to use a multiple level model, as you can always use a cross-nested model instead.
The only exception I can think of is when you have a very large number of alternatives. But in this case, sequential estimation is certainly preferable. 

If you really need a muti-level nested, you can always code the likelihood yourself. Look at the file nested.py to see the implementation of the nested logit, and get inspiration about how to do it. 



--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
To post to this group, send email to bio...@googlegroups.com.
Visit this group at https://groups.google.com/group/biogeme.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages