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

by Shan
29 May 2023, 10:41
Forum: Estimation results
Topic: Extremely large estimated standard deviation from a Mixed Logit model using a lognormal distribution
Replies: 2
Views: 3844

Re: Extremely large estimated standard deviation from a Mixed Logit model using a lognormal distribution

Hi David, Thank you for your reply. Now, I understand that I can add the random parameters one by one. I am a little confused about how I can take advantage of results from the MNL model. Do you mean that I can only set the statistically significant coefficients from the MNL model as random paramete...
by Shan
03 Feb 2023, 14:01
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: 3610

Re: Error: some utilities for component "MNL" contain values that are not finite numbers

Thank you for your help. Sorry, I cannot provide the data without permission since the copyright belongs to my university. I deleted two alternative-specific constants, namely, asc_bus_shift_female and asc_metro_shift_female. Then, my model could run successfully, which is weird.
by Shan
02 Feb 2023, 14:07
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: 3610

Re: Error: some utilities for component "MNL" contain values that are not finite numbers

Hi Stephane, Thank you for your reply. I have changed the random draws from "Halton" to "mlhs". However, I still received this error report. I believe the error was reported at the beginning: right after "the Preparing user-defined functions. Testing likelihood function...&q...
by Shan
24 Jan 2023, 10:55
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: 3610

Error: some utilities for component "MNL" contain values that are not finite numbers

Dear Sir, I hope that you are doing well. I tried to estimate a Mixed logit model, and the results were good when using only 100 Halton draws. However, an error was reported when the draws were raised to 1000, which is in apollo_mnl (mnl_setting, functionality): some utilities for component "MN...
by Shan
29 Nov 2022, 17:36
Forum: Post-estimation analysis/use of results
Topic: Error in model predictions
Replies: 7
Views: 6326

Re: Error in model predictions

Hi David, Thank you for your reply. Yes, my IDs are non-numeric. I will add these two lines before creating "change''. If I add so, does it mean that I have to delete the line which deletes the first two columns after estimating "change"? That is, am I supposed to delete the second li...
by Shan
25 Nov 2022, 13:58
Forum: Post-estimation analysis/use of results
Topic: Error in model predictions
Replies: 7
Views: 6326

Re: Error in model predictions

I am so sorry. Do you mean the error reported in R? It is an Error in FUN (Left, right): non-numeric argument to binary operator. I guess it is noted for the code: change=(predictions_new-predictions_base)/predictions_base.
by Shan
25 Nov 2022, 13:52
Forum: Errors during model validation and/or estimation.
Topic: An intercept parameter does not influence the log-likehood of my model after adding a new dataset
Replies: 2
Views: 1213

Re: An intercept parameter does not influence the log-likehood of my model after adding a new dataset

Hi Stephane,

Thank you for your reply. The problem was solved after I deleted some non-English texts and rearranged my dataset.

Best wishes,
Shan
by Shan
25 Nov 2022, 13:48
Forum: Post-estimation analysis/use of results
Topic: Error in model predictions
Replies: 7
Views: 6326

Re: Error in model predictions

Hi Stephane, Many thanks for your reply. Here are the outputs I got: Aggregated prediction at MLE Sampled mean Sampled std.dev. Quantile 0.025 Quantile 0.972 car 2425 2439 110.09 2267 2651 bus 1363 1361 73.23 1252 1483 metro 2341 2329 85.23 2164 1483 Average prediction at MLE Sampled mean Sampled st...
by Shan
15 Nov 2022, 12:49
Forum: Post-estimation analysis/use of results
Topic: Error in model predictions
Replies: 7
Views: 6326

Error in model predictions

Dear Sir, I hope that you are doing well. I tried to generate model predictions from a simple MNL model. However, an error was reported indicating a non-numeric argument to the binary operator for the code: change=(predictions_new-predictions_base)/predictions_base. I compared my codes for model pre...