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

Help for SPM Archives


SPM Archives

SPM Archives


SPM@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

SPM Home

SPM Home

SPM  May 2019

SPM May 2019

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: DCM Questions

From:

"Zeidman, Peter" <[log in to unmask]>

Reply-To:

Zeidman, Peter

Date:

Tue, 7 May 2019 15:20:44 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (1 lines)

Dear Victoria



> First thank you Peter for putting together your recent PEB tutorial and papers, they have been enormously helpful for me to better understand and actually implement DCM.



You're welcome! These are all good questions.



> Now that I have gone through the tutorials and am working on my own task and resting state fMRI data I have a number of remaining questions I would appreciate help from the community on.

>

>1. Low Explained Variance

> Does explained variance depend on the model? Would the full and reduced PEB models have different explained variance outcomes for subjects. For my event related task design I specified a full DCM first using some of the conditions of interest from the task. Should I expect >10% variance for subjects even for the full model (i.e. A=ones(x,y) B=ones(x,y,z), C=ones(y,z))

>

> Also, in the case of resting state DCM would I still expect 10% to be good threshold for explained variance?



The goodness of the model is the model evidence p(y|m) - the probability of observing the data y given the model m. The free energy is an approximation of the log of the model evidence, which can be decomposed into accuracy minus complexity. You can think of the accuracy part as the explained variance, and the complexity part is (effectively) how many parameters there were in the model. More specifically, it's how far the parameters had to move away from their prior values to explain the data. So yes, explained variance does depend on the model. 



You asked about explained variance of the PEB model. There are no tools for calculating that at the moment - so I think you mean explained variance of the individual subjects' DCMs? In which case, you should just be checking the explained variance of the full model from each subject. This is a useful diagnostic to make sure that something hasn't gone wrong with the model fit. How much explained variance is enough to be interesting in the task DCM? There's no right answer - so as a rule of them, we say less than 10% isn't interesting and might suggest a problem. (You can imagine times where that criteria wouldn't be fair - e.g. with a sparse design with occasional brief events, where most of the timeseries is expected to be noise.)



With resting state DCM, I would expect a high level of explained variance. A better diagnostic might be how much of the variance is ascribed to the neural part of the model - i.e. how big are the neural parameters. This is shown in the bottom left of spm_dcm_fmri_check(GCM) - the title goes red if all neural connections are very small.



> 2. Probability of Model

> I'm a bit confused on the outputs being produced when I run spm_dcm_peb. How would I interpret example output below:

> VL Iteration 1 : F = -3877623.13 dF: 0.0000 [-3.75] 

> VL Iteration 2 : F = -3876869.71 dF: 753.4163 [-3.50]

>

> Also is there a significance to the the number of iterations? If it reaches 256 - max iterations does that mean it didn't converge. And it doesn't converge does that mean I should treat the BMC results differently or that I need to increase the max iterations?



This is the model fitting process - the variational Laplace algorithm. It's a gradient ascent on the free energy. The key thing to look at is the difference in free energy between the current step and the previous (dF: 753.4163). That change in free energy should be big to start with and get smaller. If it's still getting smaller when it reaches 256, then you might want to increase the max number of iterations, to give it more time. You can set this with M.maxit.



> 3. Interpreting Significant Results

> I do have results for a significant association with co-variate to the BMA of PEB (using Free Energy - 95%).

> What do parameters larger than 1 mean - I see on the connectivity matrix the results are maxed at 1 but some of my parameters have values greater than abs(1), though I know from tutorial Hz is supposed to be units? Is there a different way I am supposed to interpret the correlation matrix?



This is covered in detail in the tutorial, but to summarise the key points, I have just added a section to the Wiki - please see  https://en.wikibooks.org/w/index.php?title=SPM/Parametric_Empirical_Bayes_(PEB)&wteswitched=1#Interpreting_the_output . Note that in (one-state) DCM for fMRI, the self-connections are log scaling parameters that multiply up or down a default value of -0.5Hz, whereas the between-region connections are in units of Hz. Please see part 1 of the tutorial paper for details on this.



> How ought I factor in diagnostics (low explained variance/parameter correlation) and the info on model probabilities that outputs when I run spm_dcm_peb_bmc for accepting significant results?



Accuracy and complexity are accounted for automatically when performing Bayesian model comparison, because they are the two terms making up the free energy. 



> In the case of parameters that are very small effect sizes (<.05) is that a sign these results are likely erroneous and should these be ignored?



No, there is no reason why a small parameter should be erroneous. It might be that you consider them too small to be interesting though :-)



> 4. A matrix in task vs RS DCM

> Using the same ROIs and mostly same subjects, I did a stochastic RS DCM and task based DCM and got different results for the BMA of PEB_A and am wondering how to think of endogenous connectivity of a task? (My fast event related task is an associative learning task of visual stimuli with trials of consisting of prediction stage, feedback stage, and fixation). 



You may will get different results from these different models and estimation schemes. I recommend using DCM for CSD, as it has been shown to be more reliable than stochastic DCM (see the paper by Razi et al.).



> Also, in your PEB DCM tutorial part2 - it says average connectivity across experimental conditions (A-matrix) - does it mean across only included first level conditions or the whole fMRI task?



All the conditions included in the model.



> 5. Choosing which connections to include in the B matrix  In the PEB tutorial only the self-modulations and a few connections were chosen. Is it inappropriate to estimate a full PEB on the the connected B matrix for each condition and then pursue the BMR/BMA?



Yes that's fine. 



> 6. DCM-Specification: Centre Input

> Does selecting yes for this option center your regressors or do you still manually have to change the values?



It centres in the regressors at the first level - i.e. the columns from your first level GLMs. For the second level (i.e. PEB covariates, e.g. age, gender etc), you need to mean-centre these manually at present.



> 7. Group Differences

> Are group differences able to captured well in the PEB framework? In tutorial I saw it says it assumes same architecture - I study psychosis so wasn't sure how good that assumption is Also wist to confirming categorical/dummy coding  co-variates are the proper way to test group differences in PEB DCM?



Yes, the PEB framework is equally applicable to discrete and continuous between-subject effects. For examples of dummy coding, please see https://en.wikibooks.org/w/index.php?title=SPM/Parametric_Empirical_Bayes_(PEB)&wteswitched=1#Example_design_matrices 



Best

Peter

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
2000
1999
1998


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