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

by dpalma
19 Aug 2020, 12:54
Forum: Errors during model validation and/or estimation.
Topic: estimation in WTP-space
Replies: 30
Views: 1573320

Re: estimation in WTP-space

You should call apollo_searchStart just before calling apollo_estimate, as in: apollo_beta=apollo_searchStart(apollo_beta, apollo_fixed,apollo_probabilities, apollo_inputs) model = apollo_estimate(apollo_beta, apollo_fixed, apollo_probabilities, apollo_inputs) Be aware that apollo_searchStart can ta...
by dpalma
19 Aug 2020, 12:03
Forum: Errors during model validation and/or estimation.
Topic: estimation in WTP-space
Replies: 30
Views: 1573320

Re: estimation in WTP-space

Hi, The formulation looks fine, but I would recommend using a different ASC for the base a treatment scenarios. Also, why does only one alternative have an ASC? Are the second and third alternatives unlabelled while the first one is labelled? Keep in mind that mixed logits potentially have multiple ...
by dpalma
18 Aug 2020, 18:50
Forum: Errors during model validation and/or estimation.
Topic: estimation in WTP-space
Replies: 30
Views: 1573320

Re: estimation in WTP-space

Hi, You can obtain the mean and the s.d. of your lognormal parameters using the following code snippet: deltaMethod_settings <- list(operation="lognormal", parName1="cost_B_mu", parName2="cost_B_sig") apollo_deltaMethod(model, deltaMethod_settings) deltaMethod_settings ...
by dpalma
30 Jun 2020, 16:55
Forum: Installation and updating
Topic: Installing when R is run from a remote desktop
Replies: 5
Views: 18064

Re: Installing when R is run from a remote desktop

Hi, Apollo depends on multiple other packages to work. Among them, it depends on the package 'mnormt'. So for Apollo to work, mnormt must be installed. The issue is that the package mnormt requires R version 4 or later to work, but your system only has R version 3.6. As your R version is old, mnormt...
by dpalma
30 Jun 2020, 10:24
Forum: Installation and updating
Topic: Installing when R is run from a remote desktop
Replies: 5
Views: 18064

Re: Installing when R is run from a remote desktop

Hi, I am afraid we don't have much experience with a set-up such as yours, but we'll try to help the best we can. I would recommend starting by trying to install Apollo the regular way, that is typing: install.packages("apollo") If you do that, do you get en error message? if so, what erro...
by dpalma
17 Jun 2020, 11:37
Forum: Model estimation
Topic: Parallel computing MXL
Replies: 9
Views: 29908

Re: Parallel computing MXL

Hi Sven, I did some googling, and apparently you have run into an RStudio bug, as reported in the following forum: https://github.com/rstudio/rstudio/issues/6692 I didn't go through the whole thread, but they do say not to expect a fix earlier than a few weeks from now. In the meantime, you could tr...
by dpalma
15 Jun 2020, 13:21
Forum: Model estimation
Topic: Parallel computing MXL
Replies: 9
Views: 29908

Re: Parallel computing MXL

Hi Sven, I would recommend trying to install mvtnorm again from CRAN. I know you already did that, but I just checked CRAN and now both the r-release and r-oldrel are 1.1-1. So, with a bit of luck, installing it again might help. Also, do you have full administrator rights on your computer? It has h...
by dpalma
15 May 2020, 12:43
Forum: Examples (existing and requests for new ones)
Topic: LC with continuous random parameters with LV
Replies: 2
Views: 10850

Re: LC with continuous random parameters with LV

Hi Rafael, Attached to this post is a compressed folder containing four files: ILVLC.pdf The formulation of a latent class model with two latent variables: one influencing the class allocation, and another influencing the utility functions. ILVLC.R The implementation of the same model in Apollo. ILV...
by dpalma
12 May 2020, 17:02
Forum: Model specification
Topic: Choice sets with large numbers of alternatives
Replies: 8
Views: 12376

Re: Choice sets with large numbers of alternatives

Hi Malte, In your case, I would recommend creating 100 alternatives for all individuals, and then set their availability to reflect the actual number of alternatives that each individual faces. You can use a "for" loop to avoid writing 100 utilities. Below is an example. That piece of code...
by dpalma
28 Apr 2020, 19:41
Forum: Bug reports
Topic: Error with Multi-threading model estimation
Replies: 6
Views: 19154

Re: Error with Multi-threading model estimation

Hi Richárd, Sadly, I am not familiar with the error you got. It is an error generated by the “parallel” package, and not from Apollo, so I can only guess at what the issue is. Are you running R in windows? If so, the first time you use Apollo (or any other package) with multithreading you should get...