AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
January 04, 2017 11:27AM
Hello Team AFNI,

I am trying to run a multilevel model using 3dLME. I have two factors in the model, Group (2 levels) and Age (continuous; random effect). Initially, I coded Group as 1 and 0, so that the intercept is when Group=0 (see script A below). Then, I recoded Group as 0.5 and -0.5 (script B below), so that the intercept would be halfway between the two groups. However, this produced the exact same results as when Group was coded as 1 and 0. When I pull ROIstats and run the model separately in R, I get different results depending on how I coded Group.

So my questions are:

How does 3dLME treat the Group variable? And what does it feed into R?
Am I coding it correctly?

Script A

3dLME -prefix lme-B+C \
-jobs 4 \
-model 'Group*Age' \
-qVars 'Age' \
-qVarCenters '14.79' \
-ranEff '~1|Subj' \
-resid lme-B+C-resid \
-dataTable \
Subj Group Age InputFile \
A1 1 15.37 'input+tlrc[18]' \
A1 1 17.45 'input+tlrc[18]' \
...
...
A45 0 13.68 'input+tlrc[18]'
A45 0 16.01 'input+tlrc[18]'

Script B

3dLME -prefix lme-B+C \
-jobs 4 \
-model 'Group*Age' \
-qVars 'Age' \
-qVarCenters '14.79' \
-ranEff '~1|Subj' \
-resid lme-B+C-resid \
-dataTable \
Subj Group Age InputFile \
A1 0.5 15.37 'input+tlrc[18]' \
A1 0.5 17.45 'input+tlrc[18]' \
...
...
A45 -0.5 13.68 'input+tlrc[18]'
A45 -0.5 16.01 'input+tlrc[18]'

Thank you!
Jordan



Edited 1 time(s). Last edit at 01/04/2017 03:53PM by Jordan.
Subject Author Posted

3dLME Grouping variables

Jordan January 04, 2017 11:27AM

Re: 3dLME Grouping variables

gang January 04, 2017 04:36PM