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

by hrrichard
14 Oct 2021, 12:50
Forum: Post-estimation analysis/use of results
Topic: Calculating logsum from the estimated model
Replies: 6
Views: 5964

Re: Calculating logsum from the estimated model

Hi David,

Thank you so much for your help! The code worked well, and I was able to derive the logsum.

Cheers,
Richard
by hrrichard
08 Oct 2021, 08:23
Forum: Post-estimation analysis/use of results
Topic: Calculating logsum from the estimated model
Replies: 6
Views: 5964

Re: Calculating logsum from the estimated model

Hi David, Thanks for your swift reply! Our estimated model has a more complex preference structure than the MNL, accounting for random, deterministic and latent-variable induced heterogeneity. I include the code of the model below. Could you please help with suggesting how to calculate the logsum wh...
by hrrichard
07 Oct 2021, 19:11
Forum: Post-estimation analysis/use of results
Topic: Calculating logsum from the estimated model
Replies: 6
Views: 5964

Re: Calculating logsum from the estimated model

Hi David, Thank you for your advice! I worked out a code below, could you please advise if it makes sense to you: The deterministic utilities from the model are as follows: V = list() V[['MMB']] = asc_MMB + tt_1*mm.tt1 + tt_2*mm.tt2 + tc*mm.tc + cont_1*(mm.cont==0) + cont_2*(mm.cont==1) + cont_3*(mm...
by hrrichard
06 Oct 2021, 18:41
Forum: Post-estimation analysis/use of results
Topic: Calculating logsum from the estimated model
Replies: 6
Views: 5964

Calculating logsum from the estimated model

Hi Stephane and David, I am working on a project related to accessibility. The model has been estimated, and I would like to calculate/obtain the logsum for each individual in the dataset using the estimated parameters of the model. Could you please advise how to do this? Thank you for your help! Ri...
by hrrichard
17 May 2021, 07:08
Forum: Errors during model validation and/or estimation.
Topic: ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1
Replies: 4
Views: 5972

Re: ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1

Hi David,

Thank you very much for your help and for the detailed explanation on the installation of the package update.

Cheers,
Richard
by hrrichard
15 May 2021, 19:13
Forum: Errors during model validation and/or estimation.
Topic: ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1
Replies: 4
Views: 5972

Re: ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1

Hi David, Thank you for your reply. I am using Apollo 0.2.4. This issue may be related to my machine. I experienced the error message after I updated my operating system on Mac to Big Sur. I also observed that this issue occurs in the ICLV model with ordered specification of the measurement model, w...
by hrrichard
14 May 2021, 07:54
Forum: Errors during model validation and/or estimation.
Topic: ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1
Replies: 4
Views: 5972

ICLV estimation: Model components are inconsistent across workers. Try seting apollo_control$nCores=1

Hi Stephane and David, I am trying to estimate a hybrid choice model, and the multithreading process is not completed. Using 1 core, the model runs. When I estimate a Mixed-logit on the same data, I do not encounter this issue. Please see the code of the hybrid model below : # ######################...
by hrrichard
08 Jul 2020, 15:29
Forum: Model specification
Topic: Binary/Multinomial logit in the measurement model for HCM
Replies: 3
Views: 6251

Binary/Multinomial logit in the measurement model for HCM

Hi Stephane, I am estimating a HCM, and instead of the conventional approach such as Likert-scale indicators, I would like to use other variables as indicators for the latent variable. In this case, I would use a binary/multinomial logit in the measurement equations. I have two questions regarding t...
by hrrichard
01 May 2020, 08:05
Forum: Bug reports
Topic: Error with Multi-threading model estimation
Replies: 6
Views: 18378

Re: Error with Multi-threading model estimation

Hi David,

Thank you for your response. I was eventually able to solve the problem by downgrading from R-version 4.0.0 to R version is 3.6.3, and the Multi-threading model estimation now runs in R-studio as well.

Best wishes,
Richard
by hrrichard
28 Apr 2020, 16:02
Forum: Bug reports
Topic: Error with Multi-threading model estimation
Replies: 6
Views: 18378

Error with Multi-threading model estimation

Dear Stephane and David, I just updated Apollo to v.0.0.1.0 (R version is 4.0.0, R-studio version: Version 1.2.5042), and when I am trying to estimate a model with multiple cores, I receive the following error message: Attempting to split data into 4 pieces. Number of observations per worker (thread...