How to Translate HDDM Priors in HSSM Setting? #736
-
Hi all, We are trying to replicate results from HDDM using the HSSM package. Specifically, we are modeling the parameters a, v, t, and z, with a regression structure on v: v ~ 1 + month_delayed + pay_diff HDDM_0 = hssm.HSSM(
data=data_0,
model="ddm",
loglik_kind="approx_differentiable",
prior_settings="safe",
link_settings="log_logit",
include=[
{
"name": "v",
"formula": "v ~ 0 + (1 + month_delayed + pay_diff | participant_id)",
"prior": {
"1|participant_id": {
"name": "Normal",
"mu": {"name": "Normal", "mu": 1, "sigma": 1.0, "initval": 0},
"sigma": {"name": "HalfNormal", "sigma": 1, "initval": 0.25},
},
"month_delayed|participant_id": {
"name": "Normal",
"mu": {"name": "Normal", "mu": 0, "sigma": 1.0, "initval": 0},
"sigma": {"name": "HalfNormal", "sigma": 1, "initval": 0.25},
},
"pay_diff|participant_id": {
"name": "Normal",
"mu": {"name": "Normal", "mu": 0, "sigma": 1.0, "initval": 0},
"sigma": {"name": "HalfNormal", "sigma": 1, "initval": 0.25},
},
},
"link": "identity",
},
{
"name": "a",
"formula": "a ~ 0 + (1|participant_id)",
},
{
"name": "z",
"formula": "z ~ 0 + (1|participant_id)",
},
{
"name": "t",
"formula": "t ~ 0 + (1|participant_id)",
},
],
noncentered=False,
p_outlier=0.05,
) In HDDM, the priors are characterized like this: Moreover, in the article, the prior on v is suggested to be in the range [-5, 5]. However, since we have three regressors (Intercept, month_delayed, and pay_diff), we're not sure how to set priors so that the combined value of v stays roughly within [-5, 5]. Any guidance on how to translate these priors into the HSSM framework (and how to handle the regression case for v) would be greatly appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @JoeSu112, there are a few subtleties on this one, specifically also on replicating the priors on regression betas. Before attempting to replicate the HDDM priors in detail (one note of caution, I think those have their own problems and possibly shouldn't be taken as a 'gold-standard'), two things:
Best, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! The reason we're trying to replicate the HDDM priors is that we observed good convergence in HDDM, but our HSSM models are struggling to converge. Our thought was that using HDDM priors might help improve convergence in HSSM. That said, since you mentioned the HDDM priors may not be a “gold standard,” I’m wondering if you have any recommendations on how to choose or tune priors in HSSM — specifically to improve convergence in a centered model with regression on v. Any guidance would be much appreciated! Best, |
Beta Was this translation helpful? Give feedback.
-
Hey @JoeSu112, let me try to give a more complete answer and sorry for the delay here:
Lastly, let me try to rewrite your model to setting that I consider a priori more robust:
Maybe you can try this. Some motivation for the changes:
Best, |
Beta Was this translation helpful? Give feedback.
Hey @JoeSu112,
let me try to give a more complete answer and sorry for the delay here:
0
with a pretty large standard deviation (I checked and it looks like it was set to15
). Note: This applies to the case for DDM wi…