help > RE: Subtracting contrasts / Comparing the same between-subject effect in two populations.
Mar 18, 2023  11:03 PM | Alfonso Nieto-Castanon - Boston University
RE: Subtracting contrasts / Comparing the same between-subject effect in two populations.
Hi Henry,

If you have the variables:

  MALE*EXPERIMENT : 1's for male subjects in experimental group, 0's for everybody else
  FEMALE*EXPERIMENT : 1's for female subjects in experimental group, 0's for everybody else
  MALE*CONTROL : 1's for male subjects in control group, 0's for everybody else
  FEMALE*CONTROL : 1's for female subjects in control group, 0's for everybody else

(note: the above 2nd-level covariates can be created automatically by CONN from Setup.Covariates (2nd-level) by selecting your MALE, FEMALE, CONTROL, and EXPERIMENT variables and clicking on "covariate tools -> create interaction of selected covariates")

Then your 2nd-level analysis contrast would simply be:

  Subject effects: MALE*EXPERIMENT, FEMALE*EXPERIMENT, MALE*CONTROL, FEMALE*CONTROL
  Between-subjects contrast: 1 -1 -1 1

(note: also, if you have the above variables, CONN will "notice" their structure and offer among the default analysis choices one that reads something like: "do the connectivity differences between CONTROL and EXPERIMENT subjects depend on MALE/FEMALE status?" which corresponds to exactly the above contrast; see example image attached)

Hope this helps
Alfonso
Originally posted by henryblair:
Hi,

I have a question that I feel has a simple answer, but I do not know. I am looking at my second level results in males and females independently. I have two groups (controls, and experimental group). So far, I have been only comparing male experimental subjects to male controls or female experimental group to female control group. For both of these analyses I used a 1, -1 contrast. However, now I want to see if the effect of the experiemental group (basically just subjects with a certain diagnosis) differs between males and females. I was hoping to be able subtract the two contrasts [(male experimental - male control) - (female experimental - female controls)]. But I cannot figure out how to do this in the second level tab. Does anyone know how I can determine how my experimental group affects male and female connectivity differently?

In my set up i have four groups - male experimental, male controls, female experimental female controls. For experimental males I entered 1 for all the experimental males, 0 for the control males, and NaNs for all the female subjects. I did the other four groups the same way. I do not have a covariate for all of the male/female subjects (inclusive to controls and experimental subjects) because I split it up into four groups this way. I hope this helps you understand my set up. 

I was also considering making a covariate interaction. Alternatively I was consideirng comparing (experimental males - experimental females) to (control males - control females), but I feel like this wouldn't really highlight how the diagnosis impacts sexes differently either. Not exactly sure if these options would be the correct route... I would really like to subtract the contrasts I spoke about in my first paragraph the most, because I feel like that is the most logical.  


I look forward to hearing from you.

Threaded View

TitleAuthorDate
henryblair Mar 18, 2023
RE: Subtracting contrasts / Comparing the same between-subject effect in two populations.
Alfonso Nieto-Castanon Mar 18, 2023