I have been trying to use the EM algorithm to estimate a latent class-choice model with Apollo.
Since I kept getting errors in the procedure, I decided to follow the last two examples on the website (EM_LC_no_covariates and EM_LC_with_covariates) to see what was wrong with my code. However, I got exactly the same error when running these files using the Swissmetro dataset:
Code: Select all
Error in length(apollo_inputs$apollo_scaling) > 0 && !is.na(apollo_inputs$apollo_scaling) :
'length = 13' in coercion to 'logical(1)'
I would be very thankful to get any orientation about what to do next?
Thanks for your work and for any help you can provide!
CDG