1) How to add the within-subject variable(nonstress, stress) to one HDDM model given that we can’t just use “depends_on” for it? We've tried HDDMRegressor, but it seemed inappropriate(bad convergence, high DIC and no reflection of interaction).
The code for HDDMRegressor is below:
m_reg = hddm.HDDMRegressor(data, "v ~ C(Stress, Treatment(‘NoStr’))",
depends_on = {'v': 'group','a': 'group', t':'group','z':'group'},
include = ['v', 'a', 't', 'z'])
m_reg.find_starting_values()
m_reg.sample(10000, burn = 1000, dbname = 'All_Reg_vatz.db', db = 'pickle')
m_reg.save('All_Reg_vatz')
2) We tried to divide 10 groups(MDD_Nostr, MDD_Str, BPD_Nostr, BPD_Str ...) to fit the model but how to compare the parameters between groups? Can I use Bayesian Repeated Measure ANOVA?
Many thanks & Apology for my naive questions
Best Wishes