I have a study with a repeated measured design, where all participants when through two sessions of resting-state fMRI in separate days. Before each session, they took either medication x or y. Using 3dLME, I'm trying to analyze 1) the relationship between age and FALFFs in each session; 2) compare their FALFFs in x vs. y sessions; 3) examine the moderating effect of age on the change in FALFFs from x to y session.
-gltLabel 1 "x*age" -gltCode 1 "pill : 1*x age :" #Relation between age and FALFF in x session
-gltLabel 2 "y*age" -gltCode 2 "pill : 1*y age :" #Relation between age and FALFF in y session
-gltLabel 3 "x_y_age" -gltCode 3 "pill : 1*x -1*y age :" #Interaction between age and medication
My code works when I only included formulas 1 and 2. But it doesn't work when I add formula 3. I guess it is a syntax error. Any suggestions are welcome!
implicitly assumes that the effect of age is identical across the two levels of pill, as it excludes any interaction between them. This assumption is inconsistent with your stated goal of assessing whether the age effect differs by pill condition.
To align the model with that objective, the interaction between pill and age should be included, for example:
-model "pill*age+visit+order+sex+motion" \
This specification allows the age effect to vary as a function of pill, making the interpretation of differential age effects well defined.
As a side note, ensure that each covariate included in the model is justified for the specific effects you intend to test. See more discussion here.
Thank you so much for your suggestion! That works!
Best,
Chuan
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.