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  July 2007

FSL July 2007

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: HLA with covariates of interest

From:

Jeffrey Spielberg <[log in to unmask]>

Reply-To:

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

Date:

Tue, 10 Jul 2007 11:52:34 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (205 lines)

Hi, I have been following this e-mail string and have a few questions.

What is meant by orthogonal in this context (e.g. is it just that
their cross-product sums to 0, or something more)?  If orthogonalizing
EV1 wrt EV2 is supposed to give all the shared variance to EV2,
wouldn't you expect that after orthogonalization the two EVs would be
uncorrelated?  However, testing this using the matlab code you
recommended (i.e. orthEV2 = EV2 - EV1*(pinv(EV1)*EV2)) did not produce
uncorrelated EVs.

For example,
EV1 = [1; 2; 4; 2; 8; 0; 4; 9; 5; 4; 5; 1]
EV2 = [5; 9; 3; 9; 6; 2; 4; 1; 1; 7; 0; 4]

EV1 and EV2 correlate -0.3044, sharing 9.3% of their variance.
Orthogonalizing EV2 wrt EV1 using the matlab code you provided gives,

orthEV2 = [4.4; 7.7; 0.4; 7.7; 0.9; 2; 1.4; -4.8; -2.2; 4.4; -3.2; 3.4]

EV1 and orthEV2 correlate -0.6824, now sharing 46.6% of their
variance.  This seems to have done the exact opposite of what we want.
 However, mean-centering EV1 before orthogonalizing produced a
different result,

demeaned EV1 = [-2.75; -1.75; 0.25; -1.75; 4.25; -3.75; 0.25; 5.25;
1.25; 0.25; 1.25; -2.75]

new orthEV2 = [4.1; 8.4; 3.1; 8.4; 7.4; 0.7; 4.1; 2.8; 1.4; 7.1; 0.4; 3.1]

EV1 and orthEV2 now correlate 0, sharing no variance.  This seems to
be the result we wanted and makes some sense of the conflicting
results seen in this e-mail string (e.g.
> > 2.  Why does orthogonalizing wrt to the group mean reduce this difference?).

Given this test would you recommend demeaning the EVs that you are
orthogonalizing wrt before implementing the matlab code you provided?
Thanks for your time,
Jeff



On 7/7/07, Steve Smith <[log in to unmask]> wrote:
> Hi,
>
> On 6 Jul 2007, at 20:08, Anna Engels wrote:
>
> > You recommended demeaning each questionnaire, creating the
> > interactions
> > based on these demeaned evs, and not worrying about any further
> > orthogonalization.  Our understanding is that orthogonalizing EV 1
> > wrt to EV
> > 2 gives all the shared variance to EV 2.  We had originally planned to
> > orthogonalize the interactions wrt the questionnaires so that the
> > variance
> > shared by the interaction and questionnaire evs would go to the
> > questionnaires.  How would creating the interactions from demeaned
> > questionnaires accomplish the same goal?
>
> If you explicitly want to force all the shared variance into the
> questionnaires then indeed you should orth the interaction wrt the
> questionnaires. If you don't orth then any shared variance just
> doesn't get used in the final stats (it's only the unique part of the
> variance in any given EV that gives rise to statistical significance
> for that EV).
>
> > Also, we have been doing some testing of orthogonalization
> > procedures. Say,
> > for example, we have a model with EVs for the group mean and for two
> > questionnaires (A and B).  We add in an EV representing the
> > interaction
> > between the two questionnaires and orthogonalize this EV wrt the
> > EVs for
> > questionnaires A and B.  Since adding in a new EV will account for
> > more
> > error variance, we would predict that the zstats for the two
> > questionnaires
> > will change.  However, since the interaction EV is orthogonalized
> > wrt to the
> > questionnaire EVs, we think the PEs for questionnaires A and B
> > should be
> > unaffected by the addition of the interaction to the model.  Is
> > that correct?
>
> Indeed. If you add in a new EV which is orth to everything else then
> you're right that the PEs (parameter estimates or betas) don't change
> for the already-existing EVs. However the new EV can still soak up
> error variance, i.e., reduce the residuals, so the zstats can
> increase on the original EVs.
>
> > We did some tests of the hypothesis that the PEs will remain
> > unchanged and
> > have found some confusing results.
> > We first ran two HLA's using raw (i.e. not demeaned) questionnaire
> > scores.
> >
> > Model 1:  Composed of 3 EVs.  One EV for the group mean, one for
> > questionnaire A, and one for questionnaire B.  None of the EVs were
> > orthogonalized to each other.
> > Model 2:  Composed of 4 EVs.  One EV for the group mean, one for
> > questionnaire A, one for questionnaire B, and one for the
> > interaction of
> > questionnaire A and B (created by multiplying A and B together).  The
> > interaction EV was orthogonalized wrt to the EVs for questionnaire
> > A and B (
> > i.e. clicked the buttons underneath the interaction EV
> > corresponding to A
> > and B).
> >
> > We compared the questionnaire A PE for model 1 to the questionnaire
> > A PE for
> > model 2 and found that they were not identical.  The max difference in
> > intensity between PEs for model 1 and model 2 was 8.67.  Since the
> > maximum
> > intensity of PEs for model 1 and model 2 was approximately 9, the
> > difference
> > of 8.67 seems large.  We repeated this for questionnaire B and found a
> > similar difference.
>
> Sure - three things:
>
> 1. It may not be very informative to look at the max of the
> difference. I would recommend subtracting the two PE maps and viewing
> the difference and its histogram in fslview to get a more complete
> feel for how different they really are.
>
> 2. I'm guessing that you were using FLAME ME modelling and not OLS
> for the higher-level analysis. I would expect OLS to give very close
> to exactly the same results in the two cases (though see point 3),
> but the more complex modelling in the ME options may give slightly
> different answers (though should still be similar overall).
>
> 3. OR this may be due to a bug which we recently found in FEAT and
> which will be fixed for the new release - if you orth an EV wrt more
> than one other EV it does the orth one at a time, which can be
> inaccurate if the two EVs you're orth wrt are not already orthogonal
> to each other (see recent emails about randomise). If your A and B
> are not orth then that may explain the result.
>
> > We are unclear about the source of this large difference in
> > questionnaire
> > PEs between the two models.  We then repeated this test, but this
> > time we
> > orthogonalized all EVs wrt to the group mean ( i.e. we clicked the
> > button
> > under each EV corresponding to the group mean).  We again compared the
> > questionnaire PEs for the two models and found that they were still
> > not
> > identical, but this time the difference was smaller (the max
> > difference in
> > intensity was 3.8, the maximum intensity of both PEs was
> > approximately 9).
> >
> > We are left confused about how to set up our model and have a few
> > questions.
> > 1.  Why is there a difference in questionnaire PEs for model 1 and 2?
> > 2.  Why does orthogonalizing wrt to the group mean reduce this
> > difference?
>
> Probably because then A and B are closer to being orth wrt each other
> (see comment above on the bug....).
>
> > 3.  Is there a way to make the PEs for model 1 and 2 equivalent
> > (and is this
> > a desirable goal)?
> > 4.  Given that there is a difference, which model is more
> > appropriate for
> > interpreting the effects of questionnaire A and B?
>
> For now you could get around the bug and still use model 2 by:
>
> Turn off the orthogonalisation of EV4 and save the design to tmp.fsf
> Edit tmp.mat and remove all the header stuff, leaving just the design
> matrix numbers
> mv tmp.mat tmp.txt
> In matlab:
>
> x=load('tmp.txt')
> newEV4 = x(:,4) - x(:,2:3)*(pinv(x(:,2:3))*x(:,4))
> save 'newEV4.txt' newEV4 -ascii
>
> Now you can insert the values from newEV4 into EV4; don't orth EV4 in
> the GUI.
>
> Hope this makes sense!
> Cheers.
>
>
>
> >
> > Thanks for your help,
> > ~Anna
>
>
> ------------------------------------------------------------------------
> ---
> Stephen M. Smith, Professor of Biomedical Engineering
> Associate Director,  Oxford University FMRIB Centre
>
> FMRIB, JR Hospital, Headington, Oxford  OX3 9DU, UK
> +44 (0) 1865 222726  (fax 222717)
> [log in to unmask]    http://www.fmrib.ox.ac.uk/~steve
> ------------------------------------------------------------------------
> ---
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

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