hi
difficult to know without access to the code - can you share it?
but first, your model is clearly overspecified. You cannot estimate the parameters in both classes in the class allocation model. You fix delta_a, but you keep all the other parameters free
Stephane
Important: Read this before posting to this forum
- 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.
- 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
- Before asking a question on the forum, users are kindly requested to follow these steps:
- Check that the same issue has not already been addressed in the forum - there is a search tool.
- 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
- Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
- Make sure that R is using the latest official release of Apollo.
- Users can check which version they are running by entering packageVersion("apollo").
- Then check what is the latest full release (not development version) at http://www.ApolloChoiceModelling.com/code.html.
- To update to the latest official version, just enter install.packages("apollo"). To update to a development version, download the appropriate binary file from http://www.ApolloChoiceModelling.com/code.html, and install the package from file
- If the above steps do not resolve the issue, then users should follow these steps when posting a question:
- provide full details on the issue, including the entire code and output, including any error messages
- 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 1038 matches
- 05 May 2024, 11:07
- Forum: Errors during model validation and/or estimation.
- Topic: Error while estimating a Hybrid latent class choice model
- Replies: 3
- Views: 50
- 05 May 2024, 11:03
- Forum: Model specification
- Topic: Joint Estimation for Dual Response Survey with Two Segments
- Replies: 1
- Views: 22
Re: Joint Estimation for Dual Response Survey with Two Segments
Hi
looks correct to me. I would prefer specification 2 as you allow for further scale differences. In addition however, did you test for differences between the samples in how they react to the individual attributes?
Stephane
looks correct to me. I would prefer specification 2 as you allow for further scale differences. In addition however, did you test for differences between the samples in how they react to the individual attributes?
Stephane
- 05 May 2024, 10:56
- Forum: Errors during model validation and/or estimation.
- Topic: warning message: ! 'length = 3' in coercion to 'logical(1)'
- Replies: 1
- Views: 23
Re: warning message: ! 'length = 3' in coercion to 'logical(1)'
hi
I wonder if what is happening here is a version mix-up because some of your apollo function calls are using apollo:: and others are not.
Did you ensure you are running the latest version too?
Stephane
I wonder if what is happening here is a version mix-up because some of your apollo function calls are using apollo:: and others are not.
Did you ensure you are running the latest version too?
Stephane
- 05 May 2024, 10:54
- Forum: Model specification
- Topic: Order of parameters in apollo_beta (LC model)
- Replies: 3
- Views: 110
Re: Order of parameters in apollo_beta (LC model)
hi your attribute by attribute model basically failed immediately, i.e. did not estimate. I noticed you had an odd ] at the end of apollo_beta in one of your codes If you want me to debug this, then please send me your data and code and I'll have a look as it shouldn't afffect things at all Stephane
- 05 May 2024, 10:49
- Forum: Errors during model validation and/or estimation.
- Topic: Error in estimating Latent class model with RP-SP data
- Replies: 7
- Views: 98
Re: Error in estimating Latent class model with RP-SP data
Hi simple fix. Have a look at your code. You have mnl_settings_RP$componentName = paste0("Class_",s) mnl_settings_SP$componentName = paste0("Class_",s) before you have: mnl_settings_RP = list( alternatives = c(local=1, metro=2, car=3, tw=4), ... so the list mnl_settings_RP does n...
- 05 May 2024, 10:46
- Forum: Estimation results
- Topic: Positive price coefficient in RPL model estimation
- Replies: 5
- Views: 70
Re: Positive price coefficient in RPL model estimation
David you are using randcoeff[["b_tc"]] = -exp( mu_log_b_tc + sigma_log_b_tc * draws_tc ) which means that the cost coefficient follows a negative lognormal distribution. A negative lognormal is a negative exponential of a Normal, so the parameters you are estimating are the mean and stand...
- 01 May 2024, 11:39
- Forum: Model specification
- Topic: MNL for Case 1 BWS: saddle point convergence
- Replies: 1
- Views: 73
Re: MNL for Case 1 BWS: saddle point convergence
Jay
can you show us the output, please?
Thanks
Stephane
can you show us the output, please?
Thanks
Stephane
- 01 May 2024, 11:37
- Forum: Data preparation, processing and pre-estimation analysis
- Topic: Handling 'Not Available' Data
- Replies: 1
- Views: 68
Re: Handling 'Not Available' Data
Hi I would in your case recommend option 1. Even when I treat income as a continuous variable in my models, I do not exclude people with missing data, nor do I assign them to another category. Rather, I estimate a different parameter for them, which would be in line with your idea to treat it as cat...
- 01 May 2024, 11:35
- Forum: Model specification
- Topic: latent class model
- Replies: 4
- Views: 2786
Re: latent class model
Hi I don't have any such example files, but like I said, this would all be accommodated by moving the apollo_panelProd call to be after apollo_lc. It's a very simply change for you to make For the class allocation model, you could then include covariates that vary across observations in the class al...
- 30 Apr 2024, 14:03
- Forum: Model specification
- Topic: Order of parameters in apollo_beta (LC model)
- Replies: 3
- Views: 110
Re: Order of parameters in apollo_beta (LC model)
Paul
the order does not matter as they are indexed by name. So there must be another issue.
Did you compare the starting LL?
As an aside, I strongly suggesting using different starting values in the different classes
Stephane
the order does not matter as they are indexed by name. So there must be another issue.
Did you compare the starting LL?
As an aside, I strongly suggesting using different starting values in the different classes
Stephane