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

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

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

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 mo...
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: 8610

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

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 proble...
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: 8610

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 4891 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: 8610

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

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
by ChrisDjie
07 Jul 2023, 13:43
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 8610

Re: Joint model Log-likelihood fails at starting values

*Apologies: an extended 2class version of this model.Yet, our intended 3class model did not work due to computational issues.
by ChrisDjie
07 Jul 2023, 13:42
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 8610

Re: Joint model Log-likelihood fails at starting values

Dear Stephane, We are fairly certain there are no circular dependencies in the model. The estimation issue seems to be purely numerical/computational. We did get a simplified 2class version of this model (km/mode for car-owning and carless households) working in biogeme. The results were sensible. B...
by ChrisDjie
07 Jul 2023, 11:50
Forum: Errors during model validation and/or estimation.
Topic: Joint model Log-likelihood fails at starting values
Replies: 18
Views: 8610

Re: Joint model Log-likelihood fails at starting values

Dear Stephane, Thank you for your very quick reply. Does this help? ... Whereby ld is a parameter representing the log of kilometers traveled, U is the utility of each mode m, F is the fraction of kilometers traveled per mode m, and dm is the number of kilometers traveled with mode m (the target var...