Error in Bayesian estimation
Posted: 10 May 2020, 11:28
Hello
I have been trying to use the features of Bayesian estimation in my model but I got an error message.
Therefore, I tried to run the Apollo_example_26.r file and incurred in the same error. All goes well until when trying to have the model estimated I get the message:
Estimate Model? (Y/N):
Error in colMeans(model$F) :
'x' must be an array of at least two dimensions
What is the problem?
Any help appreciated. I am using Apollo v. 0.1.0.
Thanks
Raffaele Zanoli
Below, the partial model output from Apollo_example_26.r:
Diagnostic checks passed. Please review before proceeding
-----------------------------------------------------------
Number of Individuals: 500
Number of Observations: 7000
Prior variance: 2
Target Acceptance (Fixed): 0.3
Target Acceptance (Normal): 0.3
Degrees of Freedom: 5
Avg. Number of Observations per Individual: 14
Initial Log-Likelihood: -19242.47502
-----------------------------------------------------------
Fixed Parameters Start
asc_bus_shift_female 0
asc_air_shift_female 0
asc_rail_shift_female 0
b_tt_shift_business 0
b_cost_shift_business 0
cost_income_elast 0
-----------------------------------------------------------
Random Parameters Start Dist.
asc_bus 0 N
asc_air 0 N
asc_rail 0 N
b_tt_car -3 LN-
b_tt_bus -3 LN-
b_tt_air -3 LN-
b_tt_rail -3 LN-
b_access -3 LN-
b_cost -3 LN-
b_wifi 0 CN+
b_food 0 CN+
-----------------------------------------------------------
Estimate Model? (Y/N):
Error in colMeans(model$F) :
'x' must be an array of at least two dimensions
> # ################################################################# #
> #### MODEL OUTPUTS ####
> # ################################################################# #
>
> # ----------------------------------------------------------------- #
> #---- FORMATTED OUTPUT (TO SCREEN) ----
> # ----------------------------------------------------------------- #
>
> apollo_modelOutput(model)
Error in apollo_modelOutput(model) : object 'model' not found
I have been trying to use the features of Bayesian estimation in my model but I got an error message.
Therefore, I tried to run the Apollo_example_26.r file and incurred in the same error. All goes well until when trying to have the model estimated I get the message:
Estimate Model? (Y/N):
Error in colMeans(model$F) :
'x' must be an array of at least two dimensions
What is the problem?
Any help appreciated. I am using Apollo v. 0.1.0.
Thanks
Raffaele Zanoli
Below, the partial model output from Apollo_example_26.r:
Diagnostic checks passed. Please review before proceeding
-----------------------------------------------------------
Number of Individuals: 500
Number of Observations: 7000
Prior variance: 2
Target Acceptance (Fixed): 0.3
Target Acceptance (Normal): 0.3
Degrees of Freedom: 5
Avg. Number of Observations per Individual: 14
Initial Log-Likelihood: -19242.47502
-----------------------------------------------------------
Fixed Parameters Start
asc_bus_shift_female 0
asc_air_shift_female 0
asc_rail_shift_female 0
b_tt_shift_business 0
b_cost_shift_business 0
cost_income_elast 0
-----------------------------------------------------------
Random Parameters Start Dist.
asc_bus 0 N
asc_air 0 N
asc_rail 0 N
b_tt_car -3 LN-
b_tt_bus -3 LN-
b_tt_air -3 LN-
b_tt_rail -3 LN-
b_access -3 LN-
b_cost -3 LN-
b_wifi 0 CN+
b_food 0 CN+
-----------------------------------------------------------
Estimate Model? (Y/N):
Error in colMeans(model$F) :
'x' must be an array of at least two dimensions
> # ################################################################# #
> #### MODEL OUTPUTS ####
> # ################################################################# #
>
> # ----------------------------------------------------------------- #
> #---- FORMATTED OUTPUT (TO SCREEN) ----
> # ----------------------------------------------------------------- #
>
> apollo_modelOutput(model)
Error in apollo_modelOutput(model) : object 'model' not found