Hi All Again,
Suppose that I have several groups of subjects,
with repeated measures, and a task in stimuli can be classified as
either 'easy' or 'hard'.
Doing:
depends_on = {'v': ['group', 'visit']} # group is categorical, visit is ordinal
appears
to create separate nodes group for each member of the cross product
group x visit, though I'm not sure whether this is really capturing the
hierarchical structure of the data.
But in any case, if I wanted v to also vary by within-subject condition, e.g.:
depends_on = {'v': ['group', 'visit']} # for between subject differences
patsy_string = 'v ~ C(condition, Treatment("easy"))'
my
HDDMRegressor model gives me a PatsyError "specified level 'easy' not
found", which does not occur when I remove the depends_on clause on v. So maybe what I really want to do is an HDDMRegressor model where:
patsy_string = 'v ~ 0 + C(group, Treatment("control")) * visit * C(condition, Treatment("easy")'
Sorry if this is confused.
Thanks!