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. This may take a day or two at busy times. There is no need to submit the post multiple times.
Search found 190 matches
- 18 May 2023, 12:35
- Forum: Model specification
- Topic: CNL unlabeled design
- Replies: 4
- Views: 4326
Re: CNL unlabeled design
Hi Luis, I am afraid that there is no straightforward way to code your model in Apollo. What you are proposing is that the nesting structure changes from one observation to the next. For example, in the first observation alternatives 1, 2, 3, 4, 5, and 6 might be branded A, B, C, D, E, and F, respec...
Re: eMDC2
Hi, I cannot be sure, but it seems like the problem lies on the initial values of your gamma parameters: you are using zero for all of them. Gammas cannot be zero (the model fails then), so I recommend you use 1 as initial values for them. For example, you could make gHD_G=1, gHD_E=1, gHD_B=1, gHD_F...
- 25 Apr 2023, 18:48
- Forum: Model specification
- Topic: Error when compiling utility function into a variable
- Replies: 1
- Views: 3322
Re: Error when compiling utility function into a variable
Hi, Apollo does some optimisations to the user-supplied apollo_probabilities function. Sadly, this means that you cannot use the "quote" function inside the definition of utilities. And to be in the safe side, I would recommend you do not use "quote" anywhere inside apollo_probab...
- 28 Feb 2023, 22:44
- Forum: Post-estimation analysis/use of results
- Topic: Error in Apollo ModelOutput
- Replies: 1
- Views: 3568
Re: Error in Apollo ModelOutput
Hi, Sorry for taking so long to reply. I suspect there was a problem calculating the likelihood of the equi-probable model (LL0), or the constants-only model (LLC). We will look into avoiding these issues in v0.2.9. For now, I would recommend that before you call apollo_modelOutput, you do as follow...
- 28 Feb 2023, 22:38
- Forum: Model specification
- Topic: LCCM model with two choice models
- Replies: 5
- Views: 4381
Re: LCCM model with two choice models
Hi Punya, Your code is using two class allocation functions. What I believe you want is a single allocation function, and within each class to have two choices. Below is an example that does so. The example uses the example database apollo_timeUseData, and it estimates a latent class model with two ...
- 28 Feb 2023, 21:53
- Forum: Errors during model validation and/or estimation.
- Topic: Error: some utilities for component "MNL" contain values that are not finite numbers
- Replies: 6
- Views: 3630
Re: Error: some utilities for component "MNL" contain values that are not finite numbers
Hi Shan, I can't be sure, as I can't run your model, but I have the impression that the definion of dummy variables for some seat levels was not working, as you had line feeds inside the definition of a string (a character variable). Please try using the following apollo_probabilities and see what h...
- 28 Feb 2023, 21:46
- Forum: Model specification
- Topic: Specifying the latent variables in ICLV
- Replies: 5
- Views: 3193
Re: Specifying the latent variables in ICLV
Hi Noriel. Sorry for taking so long to reply. Below is your code using the full structure you propose, including the endogenous construct idealroute which depends only on the other latent variables. Note that I increased the number of draws you were using. I set it up to a thousand, but I would more...
- 25 Nov 2022, 17:10
- Forum: Post-estimation analysis/use of results
- Topic: Error in model predictions
- Replies: 7
- Views: 6478
Re: Error in model predictions
Hi, Please try adding these two lines before creating "change": predictions_base = predictions_base[,-(1:2)] predictions_new = predictions_new[,-(1:2)] That should remove the first two columns of the prediction, which are the individual ID and the observation number. I am guessing that you...
- 25 Nov 2022, 16:53
- Forum: Bug reports
- Topic: Jupyter IRkernel compatibility
- Replies: 1
- Views: 7313
Re: Jupyter IRkernel compatibility
Hi, Sorry for the long delay in replying. We usually work on R through the RStudio IDE, so I am afraid we have no experience with Jupyter notebooks. So we very much appreciate your insight on this. Indeed it looks like apollo_initialise is the problem. We will test your proposal for a future version...
- 25 Nov 2022, 16:41
- Forum: Errors during model validation and/or estimation.
- Topic: MDCEV model with perhaps budget issue
- Replies: 2
- Views: 2227
Re: MDCEV model with perhaps budget issue
Hi, EP_no, the variable you are using as budget, is actually a column in your database (i.e. a vector), and not a scalar. So there should be no issue with that, assuming that the column actually exists in your data. Not sure what the issue is. As a first step, I would recommend updating Apollo to th...