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.

Mixed Logit with negative sigma?

Ask questions about how to estimate models and how to change your settings for estimation.
Post Reply
M-MAP2
Posts: 2
Joined: 05 Jul 2023, 02:47

Mixed Logit with negative sigma?

Post by M-MAP2 »

I wonder why the estimates of sigma (standard deviation) from the Mixed Logit model are negative. An example is here.

Estimates:
Estimate s.e. t.rat.(0) Rob.s.e. Rob.t.rat.(0)
mu_log_b_tt -1.9834 0.08812 -22.507 0.11479 -17.278
sigma_log_b_tt -0.4662 0.07753 -6.013 0.07436 -6.269
mu_log_b_tc -1.0246 0.13792 -7.428 0.17908 -5.721
sigma_log_b_tc -0.9843 0.09134 -10.776 0.09383 -10.490
mu_log_b_hw -2.9339 0.08465 -34.661 0.09071 -32.345
sigma_log_b_hw 0.8163 0.11757 6.943 0.13150 6.208
mu_log_b_ch 0.6234 0.07391 8.434 0.08289 7.521
sigma_log_b_ch -0.8263 0.12050 -6.857 0.15557 -5.311

http://www.apollochoicemodelling.com/fi ... output.txt

Typically standard deviation cannot be negative. Kindly let me know if I misunderstand something.
stephanehess
Site Admin
Posts: 998
Joined: 24 Apr 2020, 16:29

Re: Mixed Logit with negative sigma?

Post by stephanehess »

Hi

there's nothing wrong with this - see the answer at http://apollochoicemodelling.com/faq.html

This happens if a random coefficient is coded as randCoeff[["beta"]]=mu+sigma*draws where draws is a random variate that is symmetrical around zero.

The sign of sigma is then irrelevant. You can of course report it as a positive estimate in any report

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
M-MAP2
Posts: 2
Joined: 05 Jul 2023, 02:47

Re: Mixed Logit with negative sigma?

Post by M-MAP2 »

Thank you Professor. I am not sure this is the best method to solve the problem or not but I tried to change the initial parameter setting to positive value and it gave a positive result.
stephanehess
Site Admin
Posts: 998
Joined: 24 Apr 2020, 16:29

Re: Mixed Logit with negative sigma?

Post by stephanehess »

There is no need to do that. As I said, it's not a "problem", if you look at how the model is actually coded. Positive or negative estimates have the same meaning if they multiply a standard Normal
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply