I was wondering if my 3dLME model is correct. I am trying to look at changes in myelination from session 1 to 3, while controlling for age and gender effects. I only have one group, so no between-subjects factors.
I only have one group, so no between-subjects factors.
It is better to treat “gender” as a factor unless you really know how to dummy-code a categorical variable and interpret the results. Otherwise, you have two genders, so “gender” is a between subjects factor.
A couple of questions:
Do you have missing data?
Do the two genders have substantially different average age?
It is better to treat “gender” as a factor unless you really know how to dummy-code a categorical variable and interpret the results. Otherwise, you have two genders, so “gender” is a between subjects factor.
that is true. My bad.
A couple of questions:
Do you have missing data?
No, all subjects have data
Do the two genders have substantially different average age?
Lastly, the sub brick that will tell give me the omnibus F test of session while controlling for age and gender is Age:Gender:Session F brick, correct? See the attached image.
Hi,
Now I would like to run 3dLME because I have some subjects who have missing data, e.g., some subjects have 2 sessions (baseline and 6 weeks) while others have 3 sessions (baseline, week6, and week16) which would allow me to use more subjects. Also, I wanted it to use because each subject may have a unique intercept (baseline myelin content) as well as a slope (change in myelin from baseline to wee6 or week16). I am controlling for age and gender effects.
Question 1 is whether my 3dLME script looks correct (more specifically the model and ranEff flags; see below)
Question 2 is how do I include missing data? See sub-patient02 on the InputFile column below (has the first 2 sessions, but not a 3rd session)
How do you specify the random effect for multiple variables? Ignoring age (see question 2), would this be correct?
Rx effects: site (category 1-8), family_ID (continuous categorical), sib (factor)
Could you describe a little bit more about these 3 variables and explain why you consider them as random-effects variables? If you treat them as random-effects variables, they should not be included in the model specification because that is for fixed-effects variables:
Could you describe a little bit more about these 3 variables and explain why you consider them as random-effects variables? If you treat them as random-effects variables, they should not be included in the model specification because that is for fixed-effects variables:
Gotcha. So just to be clear, ranEff “~1” will estimate random intercepts for any variables specified in the dataTable that are NOT in the model?
Site, family ID and sibling are nested (and not crossed) random effects. The data were collected at multiple sites and contains siblings (i.e., family_ID) and twins/triplets (i.e., sib). There are different numbers of subjects and siblings/twins per site. Therefore, we want to include these factors as nested random effects.
Do you mean that ‘Age’ varies within subject? Is this a longitudinal study? If so, yes you can do: -ranEff “~1+age” \
Yes, age varies within subject
Yes, this is a longitudinal study which means that the interval of the variation is different between subjects. For example, sub 1 is scanned at 14.2 yo and then again at 19.9 = 5.7 years vs sub 2 scanned at 14.9 and 19.0 = 4.1 years
To sum it up, would this be the correct way to model random effects for site, family_ID, sib plus the random slope for age?:
3dLME -prefix filename -jobs 12 \
-model “grouptimeage+age+sex+handedness+IQ_PR+IQ_VC” \
-qVars “age,sex,handedness,IQ_PR,IQ_VC” \
-ranEff “~1+age” \
-SS_type 3 \
-dataTable
Subj group age time sex handedness IQ_PR IQ_VC site family_ID sib InputFile \
So just to be clear, ranEff “~1” will estimate random intercepts for any variables specified in the
dataTable that are NOT in the model?
No, the current implementation in 3dLME only considers “subjects” as the only random-effects variable.
Site, family ID and sibling are nested (and not crossed) random effects. The data were collected
at multiple sites and contains siblings (i.e., family_ID) and twins/triplets (i.e., sib). There are
different numbers of subjects and siblings/twins per site. Therefore, we want to include these
factors as nested random effects.
An intricate dataset!
How many subjects do you have within each site?
How families? Are they all twins/triplets? Do you differentiate monozygotic (MZ) and dizygotic (DZ) twins/triplets?
We are working with two large datasets (separate research projects) with thousands of subjects (n1= 2000 and n2=6000). N2 has twins and triplets (MZ and DZ) while the other only has siblings. Eventually, we will code for MZ and DZ but for now, we just want to control for site and family. There are about 500ish subjects per site and not every family has multiple children enrolled. Every family has a unique ID while sibling/twin, the triplet is coded as 0,1,2,3.
two large datasets (separate research projects) with thousands of subjects (n1= 2000 and n2=6000)
Memory could be an issue, but I assume you have access to a super computer?
N2 has twins and triplets (MZ and DZ) while the other only has siblings. Eventually, we will code for MZ
and DZ but for now, we just want to control for site and family. There are about 500ish subjects per site
and not every family has multiple children enrolled. Every family has a unique ID while sibling/twin, the
triplet is coded as 0,1,2,3.
Do you have other explanatory variables such as subject traits or behavior measures? The current implementation in 3dLME is not well-suited for the complexity involved in your case. I may have to write a separate program with a small testing dataset to handle the situation.
Yes, we do have other explanatory variables (e.g., behavioral measurements, BMI, traits etc). It is a large dataset. Solving the issue of nested random effects will be useful for multiple projects.
I would really appreciate your help.
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.