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.

Some variables do not influence the log-likelihood of your model!

Ask questions about errors you encouunter. Please make sure to include full details about your model specifications, and ideally your model file.
Post Reply
Hyewon
Posts: 11
Joined: 28 Dec 2020, 04:30

Some variables do not influence the log-likelihood of your model!

Post by Hyewon »

Dear Stephane,

Hello, this is Hyewon.
I know there are several questions about this error message, but I cannot find the way same as mine and I think I code in the right way.

Currently, I am using Apollo version 0.2.7.
I am using ICLV.
The choice part is the binary mixed logit model.
I have four latent variables which are named operation, regulation, rideshare, and sustain.

The latent variables named with the operation, regulation, and rideshare are on a 5-point Likert scale.
The "sustain" is a binary variable with 4 indicators.

The error message that I get is,

Testing influence of parametersError in apollo_estimate(apollo_beta, apollo_fixed, apollo_probabilities, :
Parameters zeta_operation_1, zeta_operation_2, zeta_regulation_1, zeta_regulation_2, zeta_regulation_3, zeta_rideshare_1, zeta_rideshare_2, zeta_rideshare_3, zeta_rideshare_4, zeta_sustain_1, zeta_sustain_2, zeta_sustain_3, zeta_sustain_4, sigma_operation_1, sigma_operation_2, sigma_rideshare_1, sigma_rideshare_2, sigma_rideshare_3, sigma_rideshare_4, sigma_regulation_1, sigma_regulation_2, sigma_regulation_3 do not influence the log-likelihood of your model!

===============

I think the model cannot understand the whole latent variable measurement component, I don't know why..
Can you please take a look and see what is the problem with it?

Since the code is long and so easy to distinguish, here I attach the gist link of GitHub.


https://gist.github.com/HyewonNamgung/a ... dadb32ff55

Thank you so much always for your effort in this wonderful tool.
stephanehess
Site Admin
Posts: 974
Joined: 24 Apr 2020, 16:29

Re: Some variables do not influence the log-likelihood of your model!

Post by stephanehess »

Hi

this one was easy to fix.

You're not actually using those model components. You have created P[["indi_operation_1"]] etc, but then later on, you have:

P[['model']] = apollo_mnl(mnl_settings, functionality)

this means that you are only using the mnl part.

What you need to use is something like P[['choice']] = apollo_mnl(mnl_settings, functionality)

and then

P = apollo_combineModels(P, apollo_inputs, functionality)

Have a look at the hybrid examples

Best wishes

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply