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

by Aditya249
11 Oct 2024, 11:42
Forum: Estimation results
Topic: NaN AIC and BIC values for a latent class model with bayesian estimation using polled RP/SP Data
Replies: 5
Views: 34696

Re: NaN AIC and BIC values for a latent class model with bayesian estimation using polled RP/SP Data

Thank you Prof. Hess for prompt response.

Even after fixing the class allocation parameters to zero, same issue persists.

Although, now I am able to get some results after specifying 'NR' to couple of alternate specific variables.
by Aditya249
05 Oct 2024, 09:51
Forum: Estimation results
Topic: NaN AIC and BIC values for a latent class model with bayesian estimation using polled RP/SP Data
Replies: 5
Views: 34696

NaN AIC and BIC values for a latent class model with bayesian estimation using polled RP/SP Data

Hi!

I am estimating a latent class model using RP/SP data with both classical and Bayesian estimation methods. However, when estimating the model with Bayesian estimation, I am encountering NaN values for model fit indices such as AIC and BIC. I have even tried using starting values obtained from ...
by Aditya249
08 Jul 2024, 08:51
Forum: Post-estimation analysis/use of results
Topic: Willingness-to-pay considering binary variable
Replies: 9
Views: 63980

Re: Willingness-to-pay considering binary variable

Thank you Prof. Hess for your prompt response.

To clarify, for examining the marginal effects of dummy variables—specifically, gender (female) and mode of transportation (car and bus)—on the decision to work from home and continuous variables, namely travel time and travel cost.

Upon estimating a ...
by Aditya249
07 Jul 2024, 11:43
Forum: Post-estimation analysis/use of results
Topic: Willingness-to-pay considering binary variable
Replies: 9
Views: 63980

Re: Willingness-to-pay considering binary variable

Hi David!
Considering that the concept of elasticity applies only to continuous variables, could you please clarify if the following approach is suitable for calculating the average marginal effect of dummy variables such as gender and marital status?

First, we estimate a model.
Next, we set all ...
by Aditya249
07 May 2024, 11:07
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 42052

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

Thank you Prof. Hess for the suggestion.

The code is working fine after altering the starting values of those parameters.
by Aditya249
07 May 2024, 09:59
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 42052

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

Thank You for offering the help, Prof. Hess.

As suggested, I have shared the code and data with you at stephane.hess@gmail.com
by Aditya249
06 May 2024, 18:02
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 42052

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

Hi!

I tried multiple times to work on this code and modify it based on the provided suggestion. Now I am getting the following error: Testing influence of parametersError in apollo_estimate(apollo_beta, apollo_fixed, apollo_probabilities, :
SPECIFICATION ISSUE - Parameters b_tt_a, b_tc_a, b_at_a ...
by Aditya249
05 May 2024, 12:42
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 42052

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

Hi!
Thank you for your prompt response. Based on your suggestion, I have revised the code. However, now I am getting the following error:

Error in apollo_combineModels(P, apollo_inputs, functionality) :
SPECIFICATION ISSUE - A component called model already exists in P before calling apollo ...
by Aditya249
02 May 2024, 10:15
Forum: Errors during model validation and/or estimation.
Topic: Error in estimating Latent class model with RP-SP data
Replies: 9
Views: 42052

Error in estimating Latent class model with RP-SP data

Hi!
Prof. Hess, and Dr. Palma

I am trying to develop a latent class model with Joint RP-SP data. However, I am getting the following error: object 'mnl_settings_RP' not found

Could you please help me out in resolving this?

The code is as follows ...