A further question, has anyone tried to examine the proportion of the posteriors in which the DDM parameters (e.g., v) for one condition is greater than the other, using this stimulus coding HDDMRegression analysis?
After I finished the modeling, I tried the following method (copied from the demo), but they did not work. It simply gave me an error alarm: AttributeError: 'float' object has no attribute 'trace'.
m_reg = hddm.HDDMRegressor(mydata, reg_descr, include='z')
v_WL, v_LL, v_WW = m_reg.nodes_db.ix[["v_Intercept",
"v_C(stim, Treatment('WL'))[T.LL]",
"v_C(stim, Treatment('WL'))[T.WW]"], 'node']
print "P(WW > LL) = ", (v_WW.trace() > v_LL.trace()).mean()
print "P(LL > WL) = ", (v_LL.trace() > v_WL.trace()).mean()
I guess that one reason is that the program could not know which should be treated as intercept(?). When we do the common within-subject modeling, we first run a dmatrix step, and claim which condition would be used as intercept, like
dmatrix("C(stim, Treatment('WL'))")
Any good pointers? Thanks a lot in advance.