Hi Stan,
real disc_mu_pr; real<lower=0> disc_sd;
vector[nSubjects] disc_raw;vector<lower=0,upper=1+1e-10>[nSubjects] disc;
for (s in 1:nSubjects) { disc[s] <- Phi_approx( disc_mu_pr + disc_sd * disc_raw[s] );}
disc_mu_pr ~ normal(0,1);disc_sd ~ cauchy(0,5); disc_raw ~ normal(0,1);
4 chains, each with iter=2000; warmup=1000; thin=1;post-warmup draws per chain=1000, total post-warmup draws=4000.
mean se_mean sd 2.5% 25% 50% 75% 97.5% n_eff Rhatdisc_mu 0.55 0.01 0.18 0.21 0.43 0.56 0.68 0.87 1036 1.01disc_sd 9.34 1.05 14.45 1.11 3.06 5.08 9.37 51.72 190 1.02disc[1] 0.56 0.01 0.41 0.00 0.07 0.67 0.99 1.00 1814 1.00disc[2] 0.65 0.01 0.39 0.00 0.27 0.84 1.00 1.00 1280 1.00disc[3] 0.73 0.01 0.32 0.00 0.53 0.87 1.00 1.00 2721 1.00disc[4] 0.54 0.01 0.41 0.00 0.08 0.61 0.98 1.00 4000 1.00disc[5] 0.85 0.00 0.22 0.16 0.77 0.96 1.00 1.00 2088 1.00disc[6] 0.57 0.01 0.41 0.00 0.09 0.69 0.99 1.00 2293 1.00disc[7] 0.42 0.01 0.40 0.00 0.01 0.30 0.88 1.00 4000 1.00disc[8] 0.41 0.01 0.42 0.00 0.00 0.23 0.89 1.00 814 1.00disc[9] 0.64 0.01 0.38 0.00 0.30 0.80 0.99 1.00 4000 1.00disc[10] 0.25 0.01 0.31 0.00 0.00 0.10 0.41 1.00 2022 1.00Hi Krzysztof,sorry for the late response. We have a cognitive task, and the model is a bit complex, with the 'disc' parameter being only part of the model. But I still attach it in case you may want to take a look. You could search the relevant lines of the disc parameter.
The concern I have is that, is such a bimodal posterior distribution a stable estimate of the parameter?
If so, does this mean a parameter value of nearly 0 or 1 is more plausible than other parameter values?
As we are also interested in the posterior mean (to correlate with fMRI data later), averaging across such a bimodal distribution doesn't seem good to us in this particular scenario.