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.

Search found 19 matches

by georkapo
12 Dec 2024, 07:27
Forum: Model specification
Topic: panel data for latent class model
Replies: 5
Views: 41211

panel data for latent class model

Dear Stephane, Dear David,

I have a data set from a stated experiment in which each respondent answered 4 choice tasks. Now, I want to estimate a latent class model, and my question is whether I need to take into account the panel effect of the multiple answers by the same respondent. In the ...
by georkapo
01 Dec 2023, 16:27
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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 ...
by georkapo
01 Dec 2023, 14:39
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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_male_cost ...
by georkapo
29 Nov 2023, 12:32
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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 ...
by georkapo
09 Nov 2023, 17:21
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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 distribution ...
by georkapo
13 Oct 2023, 13:19
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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: 415253

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 ...
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: 12
Views: 173123

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 ...
by georkapo
19 Sep 2023, 14:12
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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 ...
by georkapo
18 Sep 2023, 10:47
Forum: Model specification
Topic: mixed logit query
Replies: 14
Views: 415253

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 ...