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

by apk0022
23 Apr 2025, 23:49
Forum: Errors during model validation and/or estimation.
Topic: MMNL model starting value cost variable
Replies: 11
Views: 156444

Re: MMNL model starting value cost variable

Hi Stephane,
I felt a little lost with this one.

Could you kindly guide me with sample code to go with the approach you suggested?
I could not figure out how to proceed exactly. It would be a great help in understanding this.

Thank you in advance.

Regards,
Asmita
by apk0022
11 Apr 2025, 01:28
Forum: Estimation results
Topic: Dummy and effect coding result for heterogeneity (sigma)
Replies: 4
Views: 60914

Re: Dummy and effect coding result for heterogeneity (sigma)

Hi David,
Thank you for your response.

Here is the code for effect and dummy coding for MNL and mixed logit:
# ################################################################# #
#### DUMMYYYY - MNL ####
# ################################################################# #
### Clear memory
rm ...
by apk0022
09 Apr 2025, 13:07
Forum: Estimation results
Topic: Dummy and effect coding result for heterogeneity (sigma)
Replies: 4
Views: 60914

Dummy and effect coding result for heterogeneity (sigma)

Hi apollo team,
I have a couple of questions.

1. I ran a mixed logit model in Apollo (R) using seed in the control. The result for the significance of heterogeneity (nature of t-ratio for sd or sigma) for one attribute (with 3 levels) is not consistent across dummy and effect coding. It shows ...
by apk0022
08 Mar 2025, 18:46
Forum: Errors during model validation and/or estimation.
Topic: MMNL model starting value cost variable
Replies: 11
Views: 156444

Re: MMNL model starting value cost variable

Hi Stephane,
Thank you for your response.

I have cost following negative log-normal distribution and other attributes with normal distribution in mixed logit model in preference space. All the parameters were considered random. I used 'unconditionals' function post mixed logit model estimation to ...
by apk0022
07 Mar 2025, 15:10
Forum: Errors during model validation and/or estimation.
Topic: MMNL model starting value cost variable
Replies: 11
Views: 156444

Re: MMNL model starting value cost variable

Hi, a follow-up question here.
How do we get the CI for the WTP and the t-ratio (or p-value, for the significance of the WTP estimates from using unconditionals)?
Could you please provide details about it?

Regards,
Asmita
by apk0022
28 Feb 2025, 15:34
Forum: Post-estimation analysis/use of results
Topic: delta method to calculate WTP (normal and log-normal parameters)
Replies: 12
Views: 213919

Re: delta method to calculate WTP (normal and log-normal parameters)

How do we obtain the confidence interval for WTP estimates of the Mixed logit model?
by apk0022
16 Jan 2025, 16:07
Forum: Estimation results
Topic: Different directions in results from MNL and Mixed logit
Replies: 7
Views: 73768

Re: Different directions in results from MNL and Mixed logit

Sure.
Here are the code and output from the MNL model:
Code:
### Clear memory
rm(list = ls())
install.packages("apollo")
### Load Apollo library
library(apollo)

### Initialise code
apollo_initialise()

### Set core controls
apollo_control = list(
modelName = "DCE3",
modelDescr = "MNL model ...
by apk0022
19 Dec 2024, 23:23
Forum: Estimation results
Topic: Different directions in results from MNL and Mixed logit
Replies: 7
Views: 73768

Re: Different directions in results from MNL and Mixed logit

Hi,
Please find the output below for MMNL and kindly help me understand and resolve the issue:
Model name : MMNL_DCE3_uncorrelated
Model description : Mixed logit model on DCE3 data, uncorrelated
Model run at : 2024-12-19 17:03:34.606872
Estimation method : bgw
Model diagnosis : Relative function ...
by apk0022
19 Dec 2024, 19:26
Forum: Estimation results
Topic: Different directions in results from MNL and Mixed logit
Replies: 7
Views: 73768

Re: Different directions in results from MNL and Mixed logit

Hi Stephane,
Thank you for your response.
The AIC for MNL is 2332.18 and Mixed logit is 2253.44.

Could you advise me on the starting values if I choose to go with positive or negative lognormal
for the parameters based on the signs from MNL model? Is the way I have coded for the different levels ...
by apk0022
19 Dec 2024, 01:52
Forum: Estimation results
Topic: Different directions in results from MNL and Mixed logit
Replies: 7
Views: 73768

Different directions in results from MNL and Mixed logit

Hi Apollo team,
I ran mixed logit model without covariates for my DCE study with dummy coding.
The estimates in my result are showing undesired directions (for almost all the attributes or some level of the attributes). The directions were fine for all the attributes besides one level of fasting ...