Hi,
I would like to do posterior predictive checks for the parameters generated by the regression model:
m_reg_a = hddm.models.HDDMRegressor(data, ['a ~ epoch:C(condition)'],
depends_on = {'v': ['condition'], 't': ['condition']})
m_reg_a.find_starting_values()
m_reg_a.sample(5000, burn=200, dbname='traces.db', db='pickle')
There are six conditions:
u_v.new, u_v.old,
m_v.new, m_v.old,
m_m.new, m_m.old. Epoch is the within condition variable: one epoch collapses the RT data across 80 trials, with 8 epochs in total.
The resulting table for the mean and SD for the parameters:
Parameters Mean±SD
v u_v.old 1.68±0.12
v m_v.old 1.95±0.13
v m_m.old 1.81±0.13
t u_v.old 0.46±0.04
t m_v.old 0.34±0.04
t m_m.old 0.33±0.04
β0_a intercept 2.67±0.10
β1_a u_v.old -0.11±0.007
β1_a m_v.old -0.10±0.01
β1_a m_m.old -0.10±0.01
How could I simulate data from these parameters and include the epoch factor as well?
Many thanks!
Siyi