Hello everyone, I'm new to the HDDM package, so please excuse my questions if they seem less specialized. I have two main inquiries; the first concerns the format of the variables, and the second pertains to the differences in result output between hddm.HDDM() and hddm.HDDMRegressor().
Experimental Background:My experiment involves a combination of one between-subject variable (A, B) with two within-group variables. The first within-subject variable is "magnitude" (none, small, large), while the other is "valence" (reward, punishment). When recording the data, half of the "none" instances corresponded to rewards, and the other half to punishments. However, in reality, the subjects were exposed to the same stimuli.
Therefore, in the "none" condition, both reward and punishment should yield the same reaction times (RTs) and accuracy.
Initially, my thoughts were as follows:model = hddm.HDDM(data, include=['v','z','a','t'],
depends_on={'v':['type','magnitude','valence'],
'a':['type','magnitude','valence']})
However, this approach would treat instances when "magnitude" is "none" separately for reward and punishment conditions, causing differences in the treatment of the same stimulus.
Another idea would be to consolidate the two variables into a single variable "Stimulus," with levels such as (punish_small, punish_large, neutral, reward_small, reward_large):
model_c = hddm.HDDM(data, include=['v','z','a','t'],
depends_on={'v':['type','stimulus'],
'a':['type','stimulus']})
May I ask if this approach is feasible? If so, is there any relevant literature that supports this method?
Second question:
Given that this is a mixed design, it appears that instead of using hddm.HDDM() with "depends_on," it might be more suitable to use hddm.HDDMRegressor(). However, my primary reason for not using hddm.HDDMRegressor() is that, the output does not provide parameter values for each subject under different conditions.
For instance, by setting depends_on={'v':['type','magnitude','valence']} in hddm.HDDM(), the output displays parameter values (v/a) for each condition and each subject within the combination of magnitude and valence.
However, with hddm.HDDMRegressor(), the output does not report parameters for each subject in each condition; it only shows the parameter for that subject throughout the entire experiment.
As with the first question, how should I construct my variables if I choose to use hddm.HDDMRegressor? Should I use "magnitude" and "valence" separately or combine them as "stimulus"?
Thank you in advance for your guidance and assistance.
Billy