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

by ChrisDjie
13 Jul 2025, 12:40
Forum: Errors during model validation and/or estimation.
Topic: MDCEV problems
Replies: 3
Views: 56782

Re: MDCEV problems

Dear David,

Apologies for the very late response: I thought my post had been rejected because I had not provided any code or data.
So your response is actually much more than I was expecting, thank you.

I was not aware that fixing alpha to 1e-9 is better and will pay attention to that from now on ...
by ChrisDjie
06 May 2025, 11:23
Forum: Errors during model validation and/or estimation.
Topic: MDCEV problems
Replies: 3
Views: 56782

MDCEV problems

Dear Professor,

I am running into difficulties trying to estimate an MDCEV of energy, housing, and other expenditures.
It concerns privacy-sensitive data of (a random subsample of 10k out of) 7 million households.
The focus is the amount of money spent, as virtually all households spent some money ...
by ChrisDjie
04 Apr 2025, 08:23
Forum: Examples (existing and requests for new ones)
Topic: MDCEV_with_outside_good example fails
Replies: 1
Views: 23575

MDCEV_with_outside_good example fails

Dear Professor,

I am working through your MDCEV examples to prepare for my latest research as well as your advanced modeling course.
However, the second example fails: the one with the outside good and sociodemographic variables?
I can get it working when assuming alpha_k = 0, so maybe it is an ...
by ChrisDjie
15 Aug 2023, 11:09
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

Good to know that the zero LLs within one class are okay.
When running the searchStart function, I get: "100 candidates removed due to non-finite starting LL. 0 remain."

Best regards,

Chris
by ChrisDjie
15 Aug 2023, 10:41
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

The entries with zero total likelihoods were all households that traveled many kilometers by motors/mopeds.
I thus excluded all kms by private motorized modes that are not cars.
The total likelihoods were never zero after this intervention.
The likelihoods of kilometers traveled by ...
by ChrisDjie
10 Aug 2023, 10:55
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Oh, I am afraid some are.
I will have a look at the original data behind the entries that resulted in zero LL_total.

Thank you,

Chris
by ChrisDjie
10 Aug 2023, 10:27
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

My apologies, see attached the LL for the combined model.
This LL should be equal to the following equation: LL_total = log(P_c0*(L_car_c0*L_pt_c0*L_other_c0) + P_c1*(L_Car_c1*L_pt_c1*L_Other_c1) whereby L is the likelihood.

The model successfully run in Biogeme, but I ran into ...
by ChrisDjie
08 Aug 2023, 14:13
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

It seems that the loglikelihood is basically zero for some households (while reasonable for others).
For instance, the first 25 loglikelihoods of kilometers traveled are as attached.

What would you suggest?

Thank you,

Chris
Loglikelihoods_2class_model.png
Loglikelihoods_2class_model.png (75.22 KiB) Viewed 78750 times
by ChrisDjie
16 Jul 2023, 10:05
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

Thank you for the tip.
Something came up in the meantime, but I'll make sure to follow up after the holidays.

Best regards,

Chris
by ChrisDjie
07 Jul 2023, 15:00
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 100988

Re: Joint model Log-likelihood fails at starting values

Dear Stephane,

Thank you.
I cannot share my data though: it is (very) privacy sensitive because it is based on residential addresses and license plates.

Best regards,

Chris