JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  February 2011

FSL February 2011

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

GLM: covariates, orthogonalization, demeaning

From:

Alberto Inuggi <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Tue, 22 Feb 2011 03:02:23 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (107 lines)

hi eugene, we thanks you for this explanation.

I spent days reading several threads, in order to understand the covariate issue and its rule (orthogonalization, demeaning ), but I did not really catch that demeaning has no effect in zero-mean contrasts.  
I indeed think that a web page addressing these issues is really necessary. Covariates management occurs in most (maybe all) studies, glm is very flexible and the official documentation do not cover all the main possibilities. This list is a wonderful pit of information but, at least for a beginner user like me, sometimes cryptic. 
As a possible wishlist for your web page, I figured out several scenarios, would you please confirm my hypothesis or correct them.

1) 
one group with 2 confounding variables (gender, age) I want to control for
	Mean	cov1	cov2
A	1	x	+1
B	1	y	+1

M	1	z	+1
N	1	w	-1

Mean controlling for age and gender	[1 0 0]
Effect of gender controlling for age 	[0 1 0]
Effect of age controlling for gender 	[0 0 1]

If cov values are demeaned, its like they were orthog wrt mean, with respect to non-zero mean contrast like [1 0 0]. When I add a covariate and I orthogon it wrt mean, I just safely soak up extra variance and not affect the mean fitting?. as stated in 
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0801&L=FSL&D=0&P=188382

I cannot find how to connect with what stated here; 
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind06&L=FSL&D=0&P=1128606
 
>> The thing to remember is that if you orthogonalise variable A wrt variable B, it has no effect on the results for variable A. It only affects variable B. Counterintuitive, I know, but think about it this way. The GLM only uses the orthogonal part of the regressors to estimate the PEs. If you orthogonalise A wrt B. The orthogonal part of A (covariate) remains the same, but all of the joint space now moves into the orthogonal part of B (mean fitting). It is B that has really changed. 

Actually I want to remove the effect of the covariate on mean fitting, the mean must change. So I should orthogon. what  am I not understanding. What happens if I do not orthog or I do not demean????? 


2) 
like 1 but with a also covariate of interest (a RT) whom effect over the mean I want to investigate after having partialled out the 2 confounds
	Mean	cov1	cov2	cov3
A	1	x	+1	x
B	1	y	+1	y

M	1	z	+1	z
N	1	w	-1	k

Mean controlling for age/gender/RT	[1 0 0 0]
Effect of gender controlling for age/RT 	[0 1 0 0]
Effect of age controlling for gender/RT 	[0 0 1 0]

Concerning RT:
I orthogon both age and gender wrt RT, so that RT might explain the max possible variance: [0 0 0 1]  (controlling for age and gender)
(decipted from https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind04&L=FSL&D=0&P=424448)
Does this last contrast means: at which voxels my signal contain variance which can be explained by my RT after accounting for variance explained by my task EV , ?.
Or do I have to orthog also the mean wrt RT ? which is the latter meanings?

3)
I have two groups, unmatched for one or more covariates, eg. Age.

I want to know how would be group differences if they had similar ages (that is, I want to control group differences for age).

	Grp	mean1	mean2	Age	gender
A	1	1	0	x	+1
B	1	1	0	y	+1

M	1	0	1	z	+1
N	1	0	1	w	-1

demeaning a covariate do not affect contrasts with zero sum. (like mean group differences), but just the regressor intercept.
If I demean I will just predict the level of signal when the covariate is at its mean level in the study ( What do I predict if I do not demean????).
You must demean over all subjects and not in the two groups separately, otherwise you will move some age-related variance to group differences one. 
Gender values are not demeaned in order to represent the average response in the population rather than the average response in the sampled group, 
which may have an imbalance in gender 

And investigate group differences like this:
1>2			1	-1	0	0 (controlling for age and gender)
2>1			-1	1	0	0 (controlling for age and gender)
1			1	0	0	0	
2			0	1	0	0
Voxel Corr with age	0	0	1	0 (controlling for gender)


4)
I would like to investigate if and how age correlates within each group (the age*group interaction)

	Grp	Gr1	Gr2	Age1	Age2
A	1	1	0	x	0
B	1	1	0	y	0
	
M	2	0	1	0	z
N	2	0	1	0	w

Using the same values as before (again demeaning around a global mean) 

1>2			1	-1	0	0	(controlling for age)	
Group diff in age corr	0	0	1	-1
Overall age corr		0	0	0.5	0.5
Gr1 age corr		0	0	1	0
Gr2 age corr		0	0	0	1


5)
I don’t want to control for age, I want to investigate the effect of age regardless of the task 

I don’t know if the previous models (3: globally, 4: within each groups separately) already solve this questions.
There is in fact a further possibility.  Orthogonalize the mean wrt the covariate. 
I should obtain a “stricter” relation between areas activation and the covariate, regardless of the task.

For example, I have to 1st level conditions that have different mean RT. I want to know which area may explain this RT difference. How do I proceed?


Thanks in advance 
Alberto

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager