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 ...
Important: Read this before posting to this forum
- 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.
- 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
- Before asking a question on the forum, users are kindly requested to follow these steps:
- Check that the same issue has not already been addressed in the forum - there is a search tool.
- 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
- Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
- Make sure that R is using the latest official release of Apollo.
- Users can check which version they are running by entering packageVersion("apollo").
- Then check what is the latest full release (not development version) at http://www.ApolloChoiceModelling.com/code.html.
- To update to the latest official version, just enter install.packages("apollo"). To update to a development version, download the appropriate binary file from http://www.ApolloChoiceModelling.com/code.html, and install the package from file
- If the above steps do not resolve the issue, then users should follow these steps when posting a question:
- provide full details on the issue, including the entire code and output, including any error messages
- 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
- 13 Jul 2025, 12:40
- Forum: Errors during model validation and/or estimation.
- Topic: MDCEV problems
- Replies: 3
- Views: 56782
- 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 ...
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 ...
- 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 ...
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 ...
- 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
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
- 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 ...
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 ...
- 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
I will have a look at the original data behind the entries that resulted in zero LL_total.
Thank you,
Chris
- 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 ...
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 ...
- 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
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
- 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
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
- 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
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