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. This may take a day or two at busy times. There is no need to submit the post multiple times.

Correlation between alternatives

Ask questions about model specifications. Ideally include a mathematical explanation of your proposed model.
Post Reply
infiniteugi
Posts: 7
Joined: 02 Feb 2021, 07:06

Correlation between alternatives

Post by infiniteugi »

Hello,

I am trying to use a hybrid choice model with five alternatives. I got a question if Apollo can test the correlation between alternatives in the DCM. Would it be possible to get a test result?

Thank you very much.
dpalma
Posts: 190
Joined: 24 Apr 2020, 17:54

Re: Correlation between alternatives

Post by dpalma »

Hi,

Yes, it is possible to calculate correlation between alternatives. You can use one of two approaches (there might be other ways, but these are the most common ones):
  • Change the kernel of your model (i.e. the choice component) from an MNL to a GEV model (for example a nested logit or cross-nested logit) to estimate the correlation between alternatives. This might be faster, but you need a good understanding of nested or cross-nested logit.
  • Keep using an MNL kernel for the choice part, but add error components to the utility of each alternative that are correlated across alternatives. This would be analogous to what is done in example example 15, but instead of making random coefficients correlated across alternatives, it would be an additional error term (different for each alternative, as discuss by Daly & Hess)
After estimating the model, you can check for the significance of the corresponding correlation parameters.

So while it is possible to do in Apollo, it requires some modelling effort. I'm afraid there is no simple option to calculate correlation between alternative's utilities.

Cheers
David
infiniteugi
Posts: 7
Joined: 02 Feb 2021, 07:06

Re: Correlation between alternatives

Post by infiniteugi »

Thank you for your advice, David.

Actually, I'm trying to address the reviewer's comments, and he/she said that "It is likely that the alternatives are perceived as correlated. This should be tested in the DCM."

I think it would be great if I can see that the alternatives are not significantly correlated in the DCM. Is there any way to test with a nested logit using the same variables? In this case, another concern is that the hybrid choice model that I used takes a lot of time to be estimated...

Please let me know if you have any ideas.

Thank you very much.
stephanehess
Site Admin
Posts: 998
Joined: 24 Apr 2020, 16:29

Re: Correlation between alternatives

Post by stephanehess »

Hi

as a first step, it would of course be wise to test for the correlations in a simple NL model, so without the hybrid structure. But there is no guarantee that your findings in terms of correlation structure would be the same in a discrete choice only model and a hybrid model

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