Error message "duplicated componentName" in Hybrid Choice Model using Bayesian approach
Posted: 15 Nov 2020, 00:56
When I run the example "hybrid_model_bayesian.r" in this website using Apollo v 0.2.1, the following error message appears:
Apollo found a model component of type OL without a componentName. The name was set to "OL" by default.
Error in apollo_ol(ol_settings2, functionality) :
Duplicated componentName found (OL). Names must be different for each component.
This happens not only for the ordered logit model component. When I used the continuous measurement model component with the following likelihood of indicators,
### Likelihood of indicators
normalDensity_settings1 = list(outcomeNormal= comop,
xNormal=zeta_LV1_comop * LV1,
mu=0,
sigma=sigma_LV1_comop,
rows=(ques==1))
normalDensity_settings2 = list(outcomeNormal= dirop,
xNormal=zeta_LV2_dirop * LV2,
mu=0,
sigma=sigma_LV2_dirop,
rows=(ques==1))
normalDensity_settings3 = list(outcomeNormal= dis_op,
xNormal=zeta_LV3_dis_op * LV3,
mu=0,
sigma=sigma_LV3_dis_op,
rows=(ques==1))
normalDensity_settings4 = list(outcomeNormal= un_avoid,
xNormal=zeta_LV4_un_avoid * LV4,
mu=0,
sigma=sigma_LV4_un_avoid,
rows=(ques==1))
P[["indic_comop"]] = apollo_normalDensity(normalDensity_settings1, functionality)
P[["indic_dirop"]] = apollo_normalDensity(normalDensity_settings2, functionality)
P[["indic_dis_op"]] = apollo_normalDensity(normalDensity_settings3, functionality)
P[["indic_un_avoid"]] = apollo_normalDensity(normalDensity_settings4, functionality)
A similar error message appears:
Apollo found a model component of type NormD without a componentName. The name was set to "NormD" by
default.
Summary statistics for NORMD model component NormD:
Min. 1st Qu. Median Mean 3rd Qu. Max.
-2.7529 -0.7529 0.2471 0 0.2471 3.2471
Apollo found a model component of type NormD without a componentName. The name was set to "NormD" by
default.
Error in apollo_normalDensity(normalDensity_settings2, functionality) :
Duplicated componentName found (NormD). Names must be different for each component.
Thanks a lot.
Apollo found a model component of type OL without a componentName. The name was set to "OL" by default.
Error in apollo_ol(ol_settings2, functionality) :
Duplicated componentName found (OL). Names must be different for each component.
This happens not only for the ordered logit model component. When I used the continuous measurement model component with the following likelihood of indicators,
### Likelihood of indicators
normalDensity_settings1 = list(outcomeNormal= comop,
xNormal=zeta_LV1_comop * LV1,
mu=0,
sigma=sigma_LV1_comop,
rows=(ques==1))
normalDensity_settings2 = list(outcomeNormal= dirop,
xNormal=zeta_LV2_dirop * LV2,
mu=0,
sigma=sigma_LV2_dirop,
rows=(ques==1))
normalDensity_settings3 = list(outcomeNormal= dis_op,
xNormal=zeta_LV3_dis_op * LV3,
mu=0,
sigma=sigma_LV3_dis_op,
rows=(ques==1))
normalDensity_settings4 = list(outcomeNormal= un_avoid,
xNormal=zeta_LV4_un_avoid * LV4,
mu=0,
sigma=sigma_LV4_un_avoid,
rows=(ques==1))
P[["indic_comop"]] = apollo_normalDensity(normalDensity_settings1, functionality)
P[["indic_dirop"]] = apollo_normalDensity(normalDensity_settings2, functionality)
P[["indic_dis_op"]] = apollo_normalDensity(normalDensity_settings3, functionality)
P[["indic_un_avoid"]] = apollo_normalDensity(normalDensity_settings4, functionality)
A similar error message appears:
Apollo found a model component of type NormD without a componentName. The name was set to "NormD" by
default.
Summary statistics for NORMD model component NormD:
Min. 1st Qu. Median Mean 3rd Qu. Max.
-2.7529 -0.7529 0.2471 0 0.2471 3.2471
Apollo found a model component of type NormD without a componentName. The name was set to "NormD" by
default.
Error in apollo_normalDensity(normalDensity_settings2, functionality) :
Duplicated componentName found (NormD). Names must be different for each component.
Thanks a lot.