Replies: 1 comment
-
|
Hi @AbiGY3 , few comments on your question: First, yes we definitely recommend trying this with HSSM at this point, however if you really want to stick to HDDM, check out the resources in this paper. Second, with HSSM you can have within and between subject effects using the wilkinson syntax via the formulae package We have a host of tutorials in the documentation. In essence with HSSM you are allowed to use syntax like: Third, concerning priors etc. some pragmatical advice for now: Start with If you play around with this more, feel free to continue the discussion here with follow-up questions. We will try to help you iterate. Best, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
To preface I'm a psychology major with mostly self taught coding and modelling skills, so I apologize if this isn't the correct place to ask these questions but I've been struggling to wrap my head around continuing my modelling.
I'll outline below what I ideally want to do and what I've attempted so far and then what I've been stuck on.
So my plan was to use HDDM to do the following:
Drift Rate (single trial) = Latent variable
Jointly inferred from:
Research Questions:
Q1: Does LPP amplitude predict evidence accumulation on a trial-by-trial basis?
Q2: Is this effect location-specific? (anterior vs. posterior)
Q3: Does depression symptom severity moderate this mapping?
Models:
Using hddm.HDDMRegressor() except for Null Model
M0: Null Model
M1: v ~ 1 + aLPP + pLPP (LPP predicts drift rate)
M2: v ~ 1 + CDI + aLPP + pLPP (CDI shifts baseline drift)
M3: v ~ 1 + CDI + aLPPCDI + pLPPCDI (CDI moderation)
M4: v ~ 1 + LPP_Diff*CDI (Location Contrast, LPP_Diff = pLPP - aLPP)
aLPP and pLPP are trial level Late Positive Potential ERP amplitudes and CDI is the just the total score out of 27.
Everything in terms of coding has gone well so far, including the install of HDDM, uploading data and running my null model.
I was trying to figure out how to do my regression models and I ran into information in one of the google groups that has me questioning if including a within-subjects measure and a between-subjects measure in hddm.HDDMRegressor() is even possible or statistically sound. I saw that this is possible in HSSM but as I was exploring doing it in HSSM I've gotten confused about how to choose the right priors, whether I should be doing parameter recovery, how and when to center a model and more.
To summarize my questions:
Is it possible to do what I set out to do in HDDM or do I need swap to HSSM?
What are the general steps I should follow to do this? i.e. 1. Null model and check convergence 2. Simulating data and parameter recovery etc..
How do I figure out what priors I should be using?
When and how should I center the model?
Any other advice or recommendations are welcome! I'm also happy to provide any additional information or clarify anything above as needed.
Thank you in advance!
Abi
Beta Was this translation helpful? Give feedback.
All reactions