Dear Martin,
Thanks a lot for your quick and detailed response! If you donât mind, Iâd like to ask a more detailed question.
Because I am a beginner at decoding, in order to understand what youâve written, I will ask one easy and three considerably difficult follow up questions based on decoding_tutorial.m:
My current model is as follows
Factors: Difficulty (Easy, Hard); Distractor Type (A,B,NoDist) (Note: The trial amount for NoDist is the sum of distractor A and B)
Design matrix: Easy-A, Easy-B, Easy-NoDist, Hard-A, Hard-B, Hard-NoDist + motion regressors repeated over 8 runs
For the decodingâŚ
regressor_names = design_from_spm(beta_loc); â here I get the regressor names from the SPM.mat file directly
(Q1.) Then, if I want to classify the images based on only the difficulty (in which my labels would be âEasyâ and âHardâ), how should I provide input for âcfg=decoding_describe_data;â? Should it be as follows?
cfg = decoding_describe_data(cfg,{Easy-A, Easy-B, Easy-NoDist, Hard-A, Hard-B, Hard-NoDist},[1 1 1 -1 -1 -1 ],regressor_names,beta_loc);
(Q2.) For the distractor type (distractor vs no_dist), should it be like this?
cfg = decoding_describe_data(cfg,{Easy-A, Easy-B, Easy-NoDist, Hard-A, Hard-B, Hard-NoDist},[0.5 0.5 -1 0.5 0.5 -1],regressor_names,beta_loc); â should I create the labels like a contrast,or should they be like [1 1 -1 1 1 -1]?
(Q3.) A pairwise classification for the distractors A and B?
cfg = decoding_describe_data(cfg,{Easy-A, Easy-B, Easy-NoDist, Hard-A, Hard-B, Hard-NoDist},[1 -1 0 1 -1 0], regressor_names,beta_loc); â Here actually I would like to exclude the NoDist condition, this is why I wrote â0â as if it was a contrast vector
(Q4.) And lastly, in order to classify the images based on all three distractors
cfg = decoding_describe_data(cfg,{Easy-A, Easy-B, Easy-NoDist, Hard-A, Hard-B, Hard-NoDist},[1 2 3 1 2 3],regressor_names,beta_loc); â And here, I am not sure about the labelling at all
Thank you so much for sparing time, and I am so sorry if I have messed up and my questions are too basic or if you do not enjoy replying too specific questions.
Kind regards,
Hilal