Hello Everyone,
Just wanted to see if what I am planning to do was correct....
I have made 3 models and have the DIC for all of them. I wanted to also check the PPC to ensure I select the best model. My understanding is that I will simulate data from all three of the models, and then compare the simulated data from the model with the actual data and see which model has the lowest MSE. Code would be something like this:
#Simulated datasets
ppc_data_M1 = hddm.utils.post_pred_gen(M1)
ppc_data_M2 = hddm.utils.post_pred_gen(M2)
ppc_data_M3 = hddm.utils.post_pred_gen(M3)
#compare data
ppc_compare_M1 = hddm.utils.post_pred_stats(data, ppc_data_1)
ppc_compare_M2 = hddm.utils.post_pred_stats(data, ppc_data_2)
ppc_compare_M3 = hddm.utils.post_pred_stats(data, ppc_data_3)
Then I would look at each of the MSE columns of the data the ppc_compare makes and select the lowest one?
Also - in terms of my plots of posterior predictives, I am using the random dot motion task and for the 3 hardest conditions the plots don't look like the computer predicts them well at all. My understanding is that the participant is guessing the response and therefore the computer is basically guessing it too and it can't make great predictions???
Thanks in advance.
Gabz xxxxxxxxx