Hi Thomas,
Thanks for such an awesome package! I'm new to DDM, so I'm just learning the ropes and this forum and the documentation have been extremely helpful.
I have one question. I currently have a data set from a complex task switching study with tons of variables. I am interested in the effect of both between and within subject variables on the parameters. The between subject variable I have are age: Adult/Child and memory: High/Low. The within subject variable is condition:Shape/Pattern/InColor/OutColor. I also have a covariate called similarity.
I am trying to build my model from your example in the tutorial:
hddm.HDDMRegressor(data[data.dbs == 1], "a ~ theta:C(conf, Treatment('LC'))", depends_on={'v': 'stim'})
You split the data up by dbs on or off, but you also mention that the full model includes dbs in the interaction between theta and stim. I understand that a is being estimated as a within subject effect with LC as the reference level. But is v also being estimated within subject with depends_on = stim but just without a reference level?
How would I estimate both between and within effects on a parameter? Would I have to subset my data by each between group? Or can I add it in the model in the interaction?
I tried this:
v_reg = "v ~ similarity:C(condition, Treatment('SHAPE')):C(sub_age, Treatment('Adult')):C(memory, Treatment('low'))"
m_scm = hddm.HDDMRegressor(data, reg, include = ['t','a', 'v'])
but it gave me an error: NotImplementedError: Missing columns in design matrix. You need data for all conditions for all subjects.
I also tried this:
m_scm = hddm.HDDMRegressor(data, "v ~ similarity:C(condition, Treatment('SHAPE'))", include = ['t','a', 'v'], depends_on = {'v':['sub_age', 'memory']})
Which didn't give an error, but I am unsure if it is estimating v how I want it to.
Any advice would be greatly appreciated.
Joel
--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| v_Intercept(high.Adult) |
| v_Intercept(high.Kid) |
| v_Intercept(low.Adult) |
| v_Intercept(low.Kid) |
| v_similarity:C(condition, Treatment('SHAPE'))[INNER_COLOR] |
| v_similarity:C(condition, Treatment('SHAPE'))[OUTER_COLOR] |
| v_similarity:C(condition, Treatment('SHAPE'))[PATTERN] |
| v_similarity:C(condition, Treatment('SHAPE'))[SHAPE] |
Yup, that's exactly the issue I had! I don't think HDDM can interact between and within variables. All the variations I tried would never lead to a v for both group and within combinations, just main effects. I ended up just sub setting the data and running the within subject model inside of each group. Whether this leads to similar results as if you had interacted them, or if there is a faux pas about doing it this way, I'm not sure. Especially when you have a lot of groups and it's not guaranteed that that particular model is best fit for all the groups.
--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.