Important: Read this before posting to this forum

  1. This forum is for questions related to the use of Apollo. We will answer some general choice modelling questions too, where appropriate, and time permitting. We cannot answer questions about how to estimate choice models with other software packages.
  2. There is a very detailed manual for Apollo available at http://www.ApolloChoiceModelling.com/manual.html. This contains detailed descriptions of the various Apollo functions, and numerous examples are available at http://www.ApolloChoiceModelling.com/examples.html. In addition, help files are available for all functions, using e.g. ?apollo_mnl
  3. Before asking a question on the forum, users are kindly requested to follow these steps:
    1. Check that the same issue has not already been addressed in the forum - there is a search tool.
    2. Ensure that the correct syntax has been used. For any function, detailed instructions are available directly in Apollo, e.g. by using ?apollo_mnl for apollo_mnl
    3. Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
    4. Make sure that R is using the latest official release of Apollo.
  4. If the above steps do not resolve the issue, then users should follow these steps when posting a question:
    1. provide full details on the issue, including the entire code and output, including any error messages
    2. posts will not immediately appear on the forum, but will be checked by a moderator first. We check the forum at least twice a week. It may thus take a couple of days for your post to appear and before we reply. There is no need to submit the post multiple times.

Handling categorical attributes in model with large choice sets with variable alternatives

Ask questions about model specifications. Ideally include a mathematical explanation of your proposed model.
Post Reply
simbala
Posts: 2
Joined: 07 Oct 2024, 04:03

Handling categorical attributes in model with large choice sets with variable alternatives

Post by simbala »

Hello Apollo team,

Thank you so much for this amazing package and for maintaining this forum.

I'm new to choice modeling and this package, and I couldn't find an answer to my question after reading the manual and examples (maybe I've missed?). I want to ask a question about handling categorical attributes in an MNL model with large choice sets with variable alternatives.

Here is a simple example: I have RP data and want to understand travels' choices among 100 different destinations (say, loc_1, ..., loc_100) using an MNL model, and I have two attributes called (1) DIST which is the distance in km from each traveler to each alternative, (2) HOTEL (say, basic, good, luxury) which is the hotel type at each destination, assuming only one hotel type is available at each destination for simplicity of this example. The choice set of each traveler is constructed such that only destinations less than 100km away from that traveler are considered. Here comes this issue:

For certain travelers, all the destinations less than 100km away from them have only one hotel type, meaning that I cannot possibly estimate the effect of HOTEL on utility for these travels. There is a small percentage of travelers in this situation (~10%). I have considered the following options, but would like to know which one might be recommended in Apollo, what cautions should be exercised for each, or if there is a better way to handle this situation:

1. leave it as it is.
2. remove travelers who have this issue.
3. group HOTEL level good and luxury together as better, which will give me a smaller percentage of travelers in this situation. Then I can either leave it as it is or remove a smaller percentage of travelers who have this issue.

Please let me know if I need to provide additional information. Thank you for your help!
stephanehess
Site Admin
Posts: 1355
Joined: 24 Apr 2020, 16:29

Re: Handling categorical attributes in model with large choice sets with variable alternatives

Post by stephanehess »

Hi

as long as for some travellers, there is a choice between alternatives that differ along that attribute, then it's not a problem at all, as your model is estimated at the sample level. So you can leave it as is

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply