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

by MAF
21 Nov 2020, 19:06
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Thank you, I went back to the examples and after a few tests I realized I was not properly using the functions the calculate and use the pi_values. Miguel
by MAF
19 Nov 2020, 05:23
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Just to clarify, I am asking about a simple OL with latent classes because I am still intrigued by the sentence in the Apollo manual, page 75, " the Tau parameters can vary across classes". I interpret this as the Taus being a function of one class at the time, and the modeler can choose t...
by MAF
19 Nov 2020, 02:14
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Thank you for the tip Stephane, I looked at example 21 and later changed the parameters and a few things and it works now when combining a MNL model and an OL model using latent classes. It also works with just a simple MNL model and latent classes. Though, I cannot make it work with just a simple O...
by MAF
17 Nov 2020, 22:04
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

hello David, Stephane, I tried a simple OL with V function related to class "b" parameters only and then I get this error message: "Error in apollo_lc(lc_settings, apollo_inputs, functionality): Arguments 'inClassProb' and 'classProb' for model component "Latent class" must ...
by MAF
17 Nov 2020, 20:19
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

I think the code I pasted does not make any sense, I have tried so many combinations trying to figure out how to do it that I have lost track of what I am doing. I am lost regarding how to input the vector Tau and the V for an OL model when using two classes in the "while" loop and also wh...
by MAF
17 Nov 2020, 17:03
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Hi David, Stephane, Long-term goal, I would like to estimate a HLCM mode and this paper was my inspiration: Hoyos, David, Petr Mariel, and Stephane Hess. "Incorporating environmental attitudes in discrete choice models: An exploration of the utility of the awareness of consequences scale."...
by MAF
16 Nov 2020, 22:13
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Just to clarify, I used the simplest possible function (1 in V) for OL to troubleshoot the problem with Tau. Also, I will link the utilities later so that the models are jointly estimated but for now just trying to solve the problem with Tau and trying to keep it as simple as possible in a combined ...
by MAF
16 Nov 2020, 21:55
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

Re: OL with latent classes

Thanks, code pasted below. --- title: "Basic LC - MNL + OL " author: "MAF" date: "11/12/2020" output: html_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ### Load Apollo library library(apollo) options(digits = 3) ``` #### LOAD LIBRARY AND D...
by MAF
16 Nov 2020, 18:32
Forum: Examples (existing and requests for new ones)
Topic: OL with latent classes
Replies: 13
Views: 51109

OL with latent classes

Thank you for Apollo and its nice features ! I have been looking at latent class models. Following examples 18 and 20 I was able to successfully implement a MNL with latent classes. Now I am trying to implement an OL model with latent classes. According to the Apollo manual Tau parameters can vary a...