Error in length(apollo_inputs$apollo_scaling) > 0 && !is.na(apollo_inputs$apollo_scaling)
Posted: 18 May 2023, 15:49
Hi,
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:
I have already tried several options for the "postEM" setting under lcEM_settings (i.e., 0, 1 or 2), and I have also upgraded to version 0.2.9.
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
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