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 15 matches
- 03 Jun 2025, 23:00
- Forum: Bug reports
- Topic: Memory Leak?
- Replies: 3
- Views: 38770
Re: Memory Leak?
I have narrowed the problem down somewhat. I was loading the packages 'parallel' and 'future' as well as apollo. I was also running the apollo code inside an Rmarkdown chunk. Based on a bit of internet snooping, there seems to be some problems with Rstudio on Linux with multithreading. I suspect ...
- 23 May 2025, 22:43
- Forum: Bug reports
- Topic: Memory Leak?
- Replies: 3
- Views: 38770
Re: Memory Leak?
Hello Stephane,
Thanks for the reply. The model ran successfully on a Windows machine, using 500 draws. On my Linux box it didn't. This suggests it might be an issue with the R compiled for my version of Linux.
John.
Thanks for the reply. The model ran successfully on a Windows machine, using 500 draws. On my Linux box it didn't. This suggests it might be an issue with the R compiled for my version of Linux.
John.
- 09 May 2025, 23:43
- Forum: Bug reports
- Topic: Memory Leak?
- Replies: 3
- Views: 38770
Memory Leak?
I have experienced some system problems estimating a hybrid choice mixed logit model. The code is long, so not including, and have not had the time to try and reproduce it with a code segment and simulated data.
I am running R through Rstudio on a Ubunto 22.04.5 LTS operating system, on a Dell ...
I am running R through Rstudio on a Ubunto 22.04.5 LTS operating system, on a Dell ...
- 30 Apr 2025, 15:15
- Forum: Model specification
- Topic: SP off SP in WTP space
- Replies: 1
- Views: 19595
SP off SP in WTP space
Hello,
I ran a choice experiment where respondents first chose their expected future level of the experiment attributes absent a policy change, and then used that expected future as a pivot for the choices offered to the respondents.
This choice situation would seem to have some of the same issues ...
I ran a choice experiment where respondents first chose their expected future level of the experiment attributes absent a policy change, and then used that expected future as a pivot for the choices offered to the respondents.
This choice situation would seem to have some of the same issues ...
- 28 Sep 2022, 21:57
- Forum: Errors during model validation and/or estimation.
- Topic: Error: Error in paste0 ... result would exceed 2^31-1 bytes
- Replies: 3
- Views: 9745
Re: Error: Error in paste0 ... result would exceed 2^31-1 bytes
Hello David,
I did a starting value search, and started with estimates from a previous model run with a larger data set. Those didn't give the error. The resulting estimates where nonsense, very large in absolute value. I updated apollo, and now it reports that the Hessian has some complex ...
I did a starting value search, and started with estimates from a previous model run with a larger data set. Those didn't give the error. The resulting estimates where nonsense, very large in absolute value. I updated apollo, and now it reports that the Hessian has some complex ...
- 28 Sep 2022, 00:28
- Forum: Errors during model validation and/or estimation.
- Topic: Error: Error in paste0 ... result would exceed 2^31-1 bytes
- Replies: 3
- Views: 9745
Error: Error in paste0 ... result would exceed 2^31-1 bytes
Hello,
I am estimating a number of mixed multinomial logit models on choice experiment data. Most of my models solve fine. However, one model run on a subset of the data fails.
apollo_estimate iterates fine. It converges, and then proceeds through the parameter scaling and additional iterations ...
I am estimating a number of mixed multinomial logit models on choice experiment data. Most of my models solve fine. However, one model run on a subset of the data fails.
apollo_estimate iterates fine. It converges, and then proceeds through the parameter scaling and additional iterations ...
- 05 Jun 2021, 18:34
- Forum: Bug reports
- Topic: Error with Multi-threading model estimation
- Replies: 6
- Views: 58484
Re: Error with Multi-threading model estimation
I too have a problem with multithreading.
Error in apollo_makeLogLike(apollo_beta, apollo_fixed, apollo_probabilities, :
Model components are inconsistent across workers. Try seting apollo_control$nCores=1
This occurs when estimating a hybrid model with two latent variables, estimated using an ...
Error in apollo_makeLogLike(apollo_beta, apollo_fixed, apollo_probabilities, :
Model components are inconsistent across workers. Try seting apollo_control$nCores=1
This occurs when estimating a hybrid model with two latent variables, estimated using an ...
- 28 Jan 2021, 18:37
- Forum: Model specification
- Topic: Multivariate Ordered Logit Model
- Replies: 12
- Views: 74055
Re: Multivariate Ordered Logit Model
Thanks, particularly for your test code, which is what lead me to see what was going on.
John.
John.
- 28 Jan 2021, 03:47
- Forum: Model specification
- Topic: Multivariate Ordered Logit Model
- Replies: 12
- Views: 74055
Re: Multivariate Ordered Logit Model
Looking a bit further, the issue seems to be with my use of 'summary' instead of 'apollo_modelOutput'. Works fine when I use this to examine the results.
John.
John.
- 28 Jan 2021, 03:22
- Forum: Model specification
- Topic: Multivariate Ordered Logit Model
- Replies: 12
- Views: 74055
Re: Multivariate Ordered Logit Model
Thanks for the example. It works on my computer. However, the error still occurs with my data.
To check on things, installed the latest version of R, updated apollo and all the other packages, and ran the analysis without loading any other packages. Also removed everything else from the database ...
To check on things, installed the latest version of R, updated apollo and all the other packages, and ran the analysis without loading any other packages. Also removed everything else from the database ...