repeated measures , within subject conditions, groups

213 views
Skip to first unread message

sjoe...@gmail.com

unread,
Apr 18, 2016, 3:12:10 PM4/18/16
to hddm-users
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!

Thomas Wiecki

unread,
Apr 19, 2016, 5:30:10 AM4/19/16
to hddm-...@googlegroups.com
You can't mix depends_on and patsy with the same variable. You can build within and between-subject effects into the patsy model spec though as you started doing.

HTH,
Thomas

--
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.

Reply all
Reply to author
Forward
0 new messages