Thanks for the quick reply. This seems to have been added when I was trying to debug the error with ChatGPT.
However, exactly the same error has happened before and is still happening when I remove this if statement. It also happens with a simple MNL version: 2 nodes produced errors; first error ...
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 6 matches
- 13 Jun 2025, 15:14
- Forum: Errors during model validation and/or estimation.
- Topic: MMNL on SP/RP data - multiple cores error
- Replies: 4
- Views: 45423
- 12 Jun 2025, 12:03
- Forum: Errors during model validation and/or estimation.
- Topic: MMNL on SP/RP data - multiple cores error
- Replies: 4
- Views: 45423
MMNL on SP/RP data - multiple cores error
Hi,
I would like to estimate a mixed-logit from SP and RP data. The data comes from different RP/SP individuals, the SP data has 4 choice tasks for each individual, the RP data is just a single observation. I do not have the socio-demographics for the RP observations so they should only be used to ...
I would like to estimate a mixed-logit from SP and RP data. The data comes from different RP/SP individuals, the SP data has 4 choice tasks for each individual, the RP data is just a single observation. I do not have the socio-demographics for the RP observations so they should only be used to ...
- 13 Jan 2025, 22:06
- Forum: Model specification
- Topic: Latent class model - preventing singular Hessian with a small parameter
- Replies: 3
- Views: 18861
Re: Latent class model - preventing singular Hessian with a small parameter
Thanks. Fixing the value does indeed allow to calculate the standard errors.
However, the model overall is quite unstable depending on the starting values. Is there a way to systematically optimize the starting values? (e.g. by trying 1,000 different combinations).
However, the model overall is quite unstable depending on the starting values. Is there a way to systematically optimize the starting values? (e.g. by trying 1,000 different combinations).
- 05 Jan 2025, 17:10
- Forum: Model specification
- Topic: Latent class model - preventing singular Hessian with a small parameter
- Replies: 3
- Views: 18861
Latent class model - preventing singular Hessian with a small parameter
Hi everyone,
I want to estimate a latent class model for a choice situation with 4 alternatives (alt4 being the output with u=0) and three classes.
I have adopted this example: https://www.apollochoicemodelling.com/files/examples/6%20Mixture%20models/LC_with_covariates.r
My dataset is relatively ...
I want to estimate a latent class model for a choice situation with 4 alternatives (alt4 being the output with u=0) and three classes.
I have adopted this example: https://www.apollochoicemodelling.com/files/examples/6%20Mixture%20models/LC_with_covariates.r
My dataset is relatively ...
- 06 Jun 2024, 10:38
- Forum: Errors during model validation and/or estimation.
- Topic: Error in inClassProb[[i]]$like * classProb[[i]]$like : non-conformable arrays
- Replies: 3
- Views: 12964
Error in inClassProb[[i]]$like * classProb[[i]]$like : non-conformable arrays
Hi,
I am trying to estimate a LC model with random parameters.
Without the random parameters, the exact same model specification works without a problem.
Unfortunately, I am getting the error:
Error in inClassProb[[i]]$like * classProb[[i]]$like :
non-conformable arrays
I saw similar errors ...
I am trying to estimate a LC model with random parameters.
Without the random parameters, the exact same model specification works without a problem.
Unfortunately, I am getting the error:
Error in inClassProb[[i]]$like * classProb[[i]]$like :
non-conformable arrays
I saw similar errors ...
- 07 Mar 2024, 18:41
- Forum: Examples (existing and requests for new ones)
- Topic: Extending the MNL example on mode choice to MMNL
- Replies: 1
- Views: 11616
Extending the MNL example on mode choice to MMNL
Dear Professors,
I am currently learning choice modelling. As I will do a quite similar project, I have tried to expand the example on mode choice (with socio-demographics) to a Mixed-Logit model. I would greatly appreciate if you could answer a few conceptual questions whether I am on the right ...
I am currently learning choice modelling. As I will do a quite similar project, I have tried to expand the example on mode choice (with socio-demographics) to a Mixed-Logit model. I would greatly appreciate if you could answer a few conceptual questions whether I am on the right ...