SYNTAX ISSUE - The 'model$estimates' object should be a named vector for models not estimated using HB!
Posted: 25 Nov 2024, 00:27
Hi,
I'm new to using Apollo (recently converted from Stata) and probably not doing the right thing here.
I'm trying to split my data sample into 2 groups based on one dummy variable, get two mixed MNL models with similar configurations and test the model coefficients for significant differences.
Reading the manual, I'm trying to do this using two components, replacing the original RP/SP split with my two groups.
Model seems to run fine, although I am not shown the two model results.
So, I'm now adding the "Model Predictions and Elasticity Calculations" part.
Trying to set up my base in predictions_base using the following expression:
### Use the estimated model to make predictions
predictions_base = apollo_prediction(model,
apollo_probabilities,
apollo_inputs,
prediction_settings=list(modelComponent = "REG"))
### Look at a summary of the predicted choice probabilities
summary(predictions_base)
I get the error message:
Error in apollo_prediction(model, apollo_probabilities, apollo_inputs, :
SYNTAX ISSUE - The 'model$estimates' object should be a named vector for models not estimated using HB!
Am I missing something critical here?
Thank you very much for your help. Cheers, Jeremy
I'm new to using Apollo (recently converted from Stata) and probably not doing the right thing here.
I'm trying to split my data sample into 2 groups based on one dummy variable, get two mixed MNL models with similar configurations and test the model coefficients for significant differences.
Reading the manual, I'm trying to do this using two components, replacing the original RP/SP split with my two groups.
Model seems to run fine, although I am not shown the two model results.
So, I'm now adding the "Model Predictions and Elasticity Calculations" part.
Trying to set up my base in predictions_base using the following expression:
### Use the estimated model to make predictions
predictions_base = apollo_prediction(model,
apollo_probabilities,
apollo_inputs,
prediction_settings=list(modelComponent = "REG"))
### Look at a summary of the predicted choice probabilities
summary(predictions_base)
I get the error message:
Error in apollo_prediction(model, apollo_probabilities, apollo_inputs, :
SYNTAX ISSUE - The 'model$estimates' object should be a named vector for models not estimated using HB!
Am I missing something critical here?
Thank you very much for your help. Cheers, Jeremy