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

by stephanehess
06 May 2024, 07:57
Forum: Estimation results
Topic: Unreasonable estimate for price and other attributes
Replies: 7
Views: 3241

Re: Unreasonable estimate for price and other attributes

Hi

apologies for the slow reply. Yes, correct on question 1, and no need to dummy code for price.

This could just be a case that your data gives unreasonable results, I can't see anything wrong with the model per se

Stephane
by stephanehess
06 May 2024, 07:55
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 592

Re: Error in estimating Latent class model with RP-SP data

You'll need to be a bit careful here as combineModels is used inside the LC. probably best to work with temporary lists rather than P for RP and SP. You also need to tell it which ones to combine Something like this (look where I have used P_temp and where I have used P You probably need to make som...
by stephanehess
06 May 2024, 07:47
Forum: Errors during model validation and/or estimation.
Topic: Error while estimating a Hybrid latent class choice model
Replies: 3
Views: 327

Re: Error while estimating a Hybrid latent class choice model

Hi

yes, please send me the data and code outside the forum and I'll have a look

Stephane
by stephanehess
06 May 2024, 07:46
Forum: Estimation results
Topic: Positive price coefficient in RPL model estimation
Replies: 10
Views: 858

Re: Positive price coefficient in RPL model estimation

David to get standard errors, you would likely need to do sampling from the asymptotic parameter distribution. We've not implemented any code for that. But with lognormals, you can also calculate the moments for the ratio analytically (a ratio of two lognormals is a lognormal) and then you can use t...
by stephanehess
05 May 2024, 18:39
Forum: Post-estimation analysis/use of results
Topic: WTP distribution in preference space
Replies: 3
Views: 2612

Re: WTP distribution in preference space

Hi

apologies for the slow reply. What you're seeing is caused by using limits in plotting. You're computing the overall density, but then you're plotting it for only a small part of the overall domain, and that's reflected in the shape you're seeing

Stephane
by stephanehess
05 May 2024, 12:10
Forum: Model specification
Topic: Include independent variables with missing values
Replies: 4
Views: 2700

Re: Include independent variables with missing values

Hi

in that case, you would have missing data for a dependent variable (indicator in hybrid choice), and you would skip those rows for that dependent variable only. See the 'rows' setting

Stephane
by stephanehess
05 May 2024, 12:07
Forum: Model estimation
Topic: Estimation of MNL and MMNL in WTP space issues
Replies: 7
Views: 4408

Re: Estimation of MNL and MMNL in WTP space issues

Apologies for the slow reply. it would be randcoeff[["b_price"]] = price_mu + price_mu * (unif_draws_a+unif_draws_b)/2 but I would advise against that distribution as the moments of WTP then do not exist. See Daly, A.J., Hess, S. & Train, K.E. (2012), Assuring finite moments for willin...
by stephanehess
05 May 2024, 12:02
Forum: Model specification
Topic: Latent variables without demographic predictors?
Replies: 1
Views: 274

Re: Latent variables without demographic predictors?

Hi

yes, this is no problem.

It's not likely to be the cause for your issue. Can you show us the estimates?

Stephane
by stephanehess
05 May 2024, 12:00
Forum: Model specification
Topic: Latent Class Analysis with Nested Logit Model
Replies: 8
Views: 9280

Re: Latent Class Analysis with Nested Logit Model

Hi

apologies for the slow reply

yes, you could possibly do that

Stephane
by stephanehess
05 May 2024, 11:51
Forum: Errors during model validation and/or estimation.
Topic: Unconditionals
Replies: 13
Views: 122289

Re: Unconditionals

apologies for the slow reply. This is very code specific, can you provide your code and data outside the forum and we can investigate