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  

|
November 04, 2019 12:41PM
HI AFNI Experts,

We were trying to create GLT codes for interactions of continuous variables, and we keep getting the generic 3dLME error (I'm assuming we're specifying our GLT for continuous variable interactions incorrectly).

For example, the following code without the interactions works (script 1):
3dLME \
-prefix $out_file \
-jobs 4 \
-model "con_linear*age_w1*lag_years" \
-qVars "con_linear,age_w1,lag_years" \
-ranEff "~1+con_linear" \
-SS_type 3 \
-mask $mask_file \
-num_glt 3 \
-gltLabel 1 'linear' -gltCode 1 'con_linear :' \
-gltLabel 2 'age' -gltCode 2 'age_w1 :' \
-gltLabel 3 'lag' -gltCode 3 'lag_years :' \
-dataTable @${data_table}

However, the following code with interactions does not work (script 2):
3dLME \
-prefix $out_file \
-jobs 4 \
-model "con_linear*age_w1*lag_years" \
-qVars "con_linear,age_w1,lag_years" \
-ranEff "~1+con_linear" \
-SS_type 3 \
-mask $mask_file \
-num_glt 7 \
-gltLabel 1 'linear' -gltCode 1 'con_linear :' \
-gltLabel 2 'age' -gltCode 2 'age_w1 :' \
-gltLabel 3 'lag' -gltCode 3 'lag_years :' \
-gltLabel 4 'linear_x_age' -gltCode 4 'con_linear : age_w1 :' \
-gltLabel 5 'lag_x_age' -gltCode 5 'lag_years : age_w1 :' \
-gltLabel 6 'linear_x_lag' -gltCode 6 'con_linear : lag_years :' \
-gltLabel 7 'linear_x_age_x_lag' -gltCode 7 'con_linear : age_w1 : lag_years :' \
-dataTable @${data_table}

1. What is the correct way to specify GLTs for the interactions of continuous variables?
2. Is there a way to specify GLTs after 3dLME has already been run?
3. The results from script 1 return what I think are estimates/regression coefficients and a z-test (rather than a t-test), is this correct?

Thank you!,
Ekarin
Subject Author Posted

3dLME: GLT codes for interactions of continuous variables

Ekarin Pongpipat November 04, 2019 12:41PM

Re: 3dLME: GLT codes for interactions of continuous variables

gang November 04, 2019 04:48PM

Re: 3dLME: GLT codes for interactions of continuous variables

Ekarin Pongpipat November 04, 2019 06:45PM

Re: 3dLME: GLT codes for interactions of continuous variables

gang November 05, 2019 04:55PM

Re: 3dLME: GLT codes for interactions of continuous variables

Ekarin Pongpipat November 12, 2019 12:31AM