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.

Search found 18 matches

by georkapo
01 Dec 2023, 16:27
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Hi Stephane, Thank you for your quick response. your second model allows for differences in cost sensitivity between men and women, so it's quite normal that you would get differences in the WTP. Does that not make sense to you? Indeed, since I allow for differences in cost, I get different values o...
by georkapo
01 Dec 2023, 14:39
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Dear Stephane, I have calculated two models, model A : ten random coefficients, model B : ten random coefficients and I have allowed for differences between genders in the cost coefficient randcoeff[["b_cost"]] = -exp( mu_log_b_cost + sigma_log_b_cost * draws_cost + (gender == 1) * ( mu_ma...
by georkapo
29 Nov 2023, 12:32
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Dear Stephane, One additional question related to the previous one. When I use a single random coefficient allowing for differences between men and women, there is a higher sd error for the attributes e.g. > (mean(wtp_unit)); (sd(wtp_unit)) [1] 12.42137 [1] 587.157 while when I do not allow for diff...
by georkapo
09 Nov 2023, 17:21
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Dear Stephane, Thank you for your recommendation. I created a single random coefficient you suggested. randcoeff[["b_cost"]] = -exp( mu_log_b_cost + sigma_log_b_cost * draws_cost + (gender == 1) * ( mu_male_cost + sigma_male_cost * draws_male_cost)) Now, I am trying to get the full distrib...
by georkapo
13 Oct 2023, 13:19
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Hi Stephane, This helped. thank you. Here is the code when I include the interactions in the random coefficient, I get NA # ################################################################# # #### LOAD LIBRARY AND DEFINE CORE SETTINGS #### # ################################# ########################...
by georkapo
12 Oct 2023, 13:51
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Hi Stephane, Thank you for the suggestions. One point for the negative sign. If I do not use it, then my wtp is negative. is this correct? Regarding the cost_male I am getting something like this [1] 1.504081e+18 [1] 3.999951e+20 Does this make sense? Also, when I include the interactions in the ran...
by georkapo
27 Sep 2023, 06:13
Forum: Model specification
Topic: How to define the start value of mu and sigma when adding random parameters to the mixed logit model?
Replies: 8
Views: 73326

Re: How to define the start value of mu and sigma when adding random parameters to the mixed logit model?

Hello David, Hello Zhao, I am running a mixed logit model in wtp space with negative lognormal for the price, while for the rest random coefficients, I use the normal distribution. However, the starting value for price (I use the values from the mnl model) doesn't work since the model produces NA. I...
by georkapo
19 Sep 2023, 14:12
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

Re: mixed logit query

Hi Stephane, Thank you. I first calculate the unconditional and then estimate the wtp separately for each random coefficient by the cost. I also use a negative sign since I use negative lognormal distribution for the cost. is this correct? Here is the code I use. ##uncoditionals unconditionals <- ap...
by georkapo
18 Sep 2023, 10:47
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 240506

mixed logit query

Dear Stephane, Dear David, Thank you! I'm not sure if I need to create a new post or if I could ask here. sorry. I also want to run a mixed logit model for the dutch sample. The aim of my analysis is to investigate wtp for different functionalities on bicycles. I found some deterministic heterogenei...
by georkapo
17 Sep 2023, 16:11
Forum: Errors during model validation and/or estimation.
Topic: errors in Latent class model
Replies: 13
Views: 31844

Re: errors in Latent class model

Dear David, Thank you very much. I really appreciate your help. Indeed, I want to calculate the average posterior class allocation probability for each country and for some other sociodemographic variables. What you recommended works fine. Another question I have is about the heterogeneity. In the m...