Hi hbayesdm-users,
I am sending an email to see if anyone has some insights that can help me figure out an issue with an edited version of an hbayesDM model.
To explain briefly, I made some minor edits to the ra_noLA model to allow it to capture different probabilities of reward and loss. I am noticing that the model does not seem to converge well for some specific cases in the loss condition. The rhat-values for the rho parameter are all above 1.05, and the rho parameter also looks to be bimodally distributed (i.e., often stuck at 0 or 1). I also attached the pairs plot of the mu_rho parameters along with the trace plot.
The specific changes to the ra_noLA model were the following:
evSafe = -pow(cert[i,t], rho[i]);
evGamble = probs[i,t] * (pow(gain[i,t], rho[i]) - pow(loss[i,t], rho[i]) );
The negative sign in front of evSafe allows it to model loss-only gambles.
I also changed the following in data in the stan file:
real<lower=-100,upper=100>
fit_model_loss <- function(filename,arg1) {
output7 <- ra_noLA_edit_losses(data = filename, niter = 2000, nwarmup = 1000, nchain = 3, ncore = 3,max_treedepth = 15)
return(output7)
}
I would be happy to hear any ideas of insights other users of hBayesDM would have for getting this model to converge. So far I have tried: increasing the number of iterations to 4000, changing the adapt delta to 0.9 instead of the default of 0.95, and increasing the number of warmup iterations to 2000 while running it for 4000 iterations, and running it in 4 chains instead of 3. I also have some participants who always picked the safe option, but removing them did not improve the model's ability to converge. None of these strategies seemed to fix the problem in my experimentation, though I am happy to try any additional experiments or ideas anyone has. Note that the model does converge better for some other subsets of my data, but not this case.