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 217 matches

by dpalma
21 May 2025, 15:12
Forum: Model estimation
Topic: eMDC Starting Values
Replies: 1
Views: 454

Re: eMDC Starting Values

Hi, Finding good starting values for eMDC si not easy. The model is quite sensitive to the values of delta (complementarity/substitution) parameters, so it cat easily fail for values that are not close to the optimum. The failure is caused because before starting estimation, Apollo adds a small valu...
by dpalma
21 May 2025, 14:23
Forum: Errors during model validation and/or estimation.
Topic: MDCEV problems
Replies: 1
Views: 395

Re: MDCEV problems

Dear Chris, As a first step, I would recommend you not fixing the alpha values to zero. They usually tend towards zero, but fixing them at zero might cause problems. So I would recommend you fixing them to something very close to zero (from the right), but not quite zero, say 1e-9. Concerning the in...
by dpalma
18 Apr 2025, 21:42
Forum: Models and estimation
Topic: Dynamic ICLV Code Generation
Replies: 1
Views: 3203

Re: Dynamic ICLV Code Generation

Hi, I am afraid using the function "eval" inside apollo_probabilities, apollo_randCoeff, or apollo_lcPars will not work. Before running the model, Apollo does a series of modifications to these functions, to both optimise them and allow for the use of analytical gradients. That is why most...
by dpalma
18 Apr 2025, 21:29
Forum: Estimation results
Topic: Dummy and effect coding result for heterogeneity (sigma)
Replies: 4
Views: 10138

Re: Dummy and effect coding result for heterogeneity (sigma)

Hi Asmita, First, I would like to say that I do not have much experience with effects coding. Personally, I always use dummy coding, so I will try to answer the best I can. Secondly, I want to highlight that identification of mixed mnl models with categorical variables is not simple, as the choice o...
by dpalma
10 Apr 2025, 20:30
Forum: Estimation results
Topic: Dummy and effect coding result for heterogeneity (sigma)
Replies: 4
Views: 10138

Re: Dummy and effect coding result for heterogeneity (sigma)

Hi Asmita,

Could you also post the code for each model? Looking at least to the definition of the utilities might help us understand things better.

Best wishes,
David
by dpalma
10 Apr 2025, 20:05
Forum: Model specification
Topic: Handling the dichotomous latent variable
Replies: 3
Views: 4728

Re: Handling the dichotomous latent variable

Hi, I am not sure I fully understand your question. According to your equations, your latent variable is continuous, because you define it as: LV = b_female * Gender_female + b_higher_education * Education_higher_education + eta Do you mean that the indicators of your latent variable are dichotomous...
by dpalma
10 Apr 2025, 17:12
Forum: Model specification
Topic: ANA_EM has no covariance matrix
Replies: 15
Views: 47023

Re: ANA_EM has no covariance matrix

Hi, I had a quick look at the code, and I believe you should not comment out the line including n_classes inside apollo_inputs after calling apollo_validateInputs. Please modify the code as shown as follows. # Validate inputs apollo_inputs <- apollo_validateInputs() apollo_inputs$n_classes <- n_clas...
by dpalma
07 Apr 2025, 15:54
Forum: Model estimation
Topic: Latent Class model with EM algorithm
Replies: 6
Views: 20867

Re: Latent Class model with EM algorithm

Hi Andrew, Out of the top of my mind, I don't have a reference for the issue with using the same starting values for latent classes (LC). The literature on identification of LC models is spread across multiple research areas and it is tricky business. However, imagine a model with two classes, only ...
by dpalma
07 Apr 2025, 14:58
Forum: Examples (existing and requests for new ones)
Topic: MDCEV_with_outside_good example fails
Replies: 1
Views: 5078

Re: MDCEV_with_outside_good example fails

Hi, We have come to realise that model in particular fails to converge on Windows, but it does converge on macOS. Beyond the OS differences, the issue is a very common one among MDCEV models with outside good using the alpha-gamma parametrisation, i.e. models where you have a common alpha among all ...
by dpalma
04 Apr 2025, 00:13
Forum: Model specification
Topic: ANA_EM has no covariance matrix
Replies: 15
Views: 47023

Re: ANA_EM has no covariance matrix

Hi, I modified your code by adding line 48 (inside apollo_lcPars). It is kind of a nasty trick, but it should allow you to run your model. I cannot test the code as I don't have the database, but let us know if it doesn't work. # Initialize Apollo apollo_initialise() # Set up core control parameters...