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.

Heteroskedasticity via Error component

Ask questions about the results reported after estimation. If the output includes errors, please include your model code if possible.
Post Reply
JuliavB
Posts: 43
Joined: 18 Aug 2021, 13:36

Heteroskedasticity via Error component

Post by JuliavB »

Hi Stephane,

following the example in the manual I´ve introduced an error component for heteroskedasticity in one of my models.
Results show that sigma_hsk is a significantly negative coefficient but the estimates of the other parameters only change very slightly in comparison to a model without sigma_hsk. Why is there at all an issue with heteroskedasticity at all as homoskedasticity is not an assumption of logit models?

Can you briefly explain what sigma_hsk does in the estimation (does it show if there is heteroskedasticity in my data at all or does it make the model account for heteroskedasticity?) and how to deal with the mentioned results?

Maybe you would be able to reply to my post until sunday as I have a deadline there and it would help me a lot to include your answer into my submission.
Thank you very much in advance.
Best,
Julia
stephanehess
Site Admin
Posts: 1142
Joined: 24 Apr 2020, 16:29

Re: Heteroskedasticity via Error component

Post by stephanehess »

Julia

difficult to answer without seeing the specific code/results, but a sigma different from 0 would indeed indicate heteroskedasticity. You may want to look at Joan Walker's work on this

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
JuliavB
Posts: 43
Joined: 18 Aug 2021, 13:36

Re: Heteroskedasticity via Error component

Post by JuliavB »

Okay, thank you very much for clarifying.
If I use a mixed logit the iid assumption of the MNL model is not valid anymore. So why is there a possibility for heteroskedasticity in mixed logit? Can it be due to misspecified variables (e.g. assumed linear but is quadratic)?
Any advice is highly appreciated.

Thanks and best,
Julia
stephanehess
Site Admin
Posts: 1142
Joined: 24 Apr 2020, 16:29

Re: Heteroskedasticity via Error component

Post by stephanehess »

Julia

in mixed logit, the model inside the mixture is still MNL, so still subject to IID and IIA. But the presence of the random terms moves us away from that, but not in a structured way if done solely with random coefficients. Including error components allows you to test specific error structures.

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