matlabbatch{1}.spm.tools.swe.smodel.dir = {'D:\NASA_Flight_VBM\CAT12_SecLevel_Scripts\SwE_Test\parametric'};
%%
matlabbatch{1}.spm.tools.swe.smodel.scans = {
'U:\NASA_Flight_VBM_KH\1023\01\S8mm_Mod_MNI_GMseg_1023_01.nii,1'
'U:\NASA_Flight_VBM_KH\1023\02\S8mm_Mod_MNI_GMseg_1023_02.nii,1'
'U:\NASA_Flight_VBM_KH\1023\03\S8mm_Mod_MNI_GMseg_1023_03.nii,1'
'U:\NASA_Flight_VBM_KH\1023\04\S8mm_Mod_MNI_GMseg_1023_04.nii,1'
'U:\NASA_Flight_VBM_KH\1023\05\S8mm_Mod_MNI_GMseg_1023_05.nii,1'
'U:\NASA_Flight_VBM_KH\1023\06\S8mm_Mod_MNI_GMseg_1023_06.nii,1'
'U:\NASA_Flight_VBM_KH\1062\01\S8mm_Mod_MNI_GMseg_1062_01.nii,1'
'U:\NASA_Flight_VBM_KH\1062\02\S8mm_Mod_MNI_GMseg_1062_02.nii,1'
'U:\NASA_Flight_VBM_KH\1062\03\S8mm_Mod_MNI_GMseg_1062_03.nii,1'
'U:\NASA_Flight_VBM_KH\1062\04\S8mm_Mod_MNI_GMseg_1062_04.nii,1'
'U:\NASA_Flight_VBM_KH\1062\05\S8mm_Mod_MNI_GMseg_1062_05.nii,1'
'U:\NASA_Flight_VBM_KH\1062\06\S8mm_Mod_MNI_GMseg_1062_06.nii,1'
'U:\NASA_Flight_VBM_KH\1098\01\S8mm_Mod_MNI_GMseg_1098_01.nii,1'
'U:\NASA_Flight_VBM_KH\1098\02\S8mm_Mod_MNI_GMseg_1098_02.nii,1'
'U:\NASA_Flight_VBM_KH\1098\03\S8mm_Mod_MNI_GMseg_1098_03.nii,1'
'U:\NASA_Flight_VBM_KH\1098\04\S8mm_Mod_MNI_GMseg_1098_04.nii,1'
'U:\NASA_Flight_VBM_KH\1098\05\S8mm_Mod_MNI_GMseg_1098_05.nii,1'
'U:\NASA_Flight_VBM_KH\1098\06\S8mm_Mod_MNI_GMseg_1098_06.nii,1'
};
%%
matlabbatch{1}.spm.tools.swe.smodel.ciftiAdditionalInfo.ciftiGeomFile = struct('brainStructureLabel', {}, 'geomFile', {}, 'areaFile', {});
matlabbatch{1}.spm.tools.swe.smodel.ciftiAdditionalInfo.volRoiConstraint = 1;
%%
matlabbatch{1}.spm.tools.swe.smodel.type.modified.groups = [1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1];
%%
%%
matlabbatch{1}.spm.tools.swe.smodel.type.modified.visits = [1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6];
%%
matlabbatch{1}.spm.tools.swe.smodel.type.modified.ss = 3;
matlabbatch{1}.spm.tools.swe.smodel.type.modified.dof_mo = 3;
%%
matlabbatch{1}.spm.tools.swe.smodel.subjects = [1
1
1
1
1
1
2
2
2
2
2
2
3
3
3
3
3
3];
%%
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(1).c = [1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(1).cname = 'intercept';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(2).c = [1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(2).cname = 'time 1';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(3).c = [0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(3).cname = 'time 2';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(4).c = [0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(4).cname = 'time 3';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(5).c = [0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(5).cname = 'time 4';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(6).c = [0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(6).cname = 'time 5';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(7).c = [0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(7).cname = 'time 6';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(8).c = [1371.77
1371.77
1371.77
1371.77
1371.77
1371.77
1519.89
1519.89
1519.89
1519.89
1519.89
1519.89
1666.44
1666.44
1666.44
1666.44
1666.44
1666.44];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(8).cname = 'TIV';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(9).c = [42.16
42.16
42.16
42.16
42.16
42.16
56.77
56.77
56.77
56.77
56.77
56.77
43.24
43.24
43.24
43.24
43.24
43.24];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(9).cname = 'age';
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(10).c = [1
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0];
%%
matlabbatch{1}.spm.tools.swe.smodel.cov(10).cname = 'sex';
matlabbatch{1}.spm.tools.swe.smodel.multi_cov = struct('files', {});
matlabbatch{1}.spm.tools.swe.smodel.masking.tm.tma.athresh = 0.1;
matlabbatch{1}.spm.tools.swe.smodel.masking.im = 1;
matlabbatch{1}.spm.tools.swe.smodel.masking.em = {''};
matlabbatch{1}.spm.tools.swe.smodel.WB.WB_no = 0;
matlabbatch{1}.spm.tools.swe.smodel.globalc.g_omit = 1;
matlabbatch{1}.spm.tools.swe.smodel.globalm.gmsca.gmsca_no = 1;
matlabbatch{1}.spm.tools.swe.smodel.globalm.glonorm = 1;
On 28 May 2020, at 03:49, khup...@ufl.edu wrote:
& here is my labeled SwE design matrix:
<Auto Generated Inline Image 1.png>
matlabbatch{1}.spm.tools.swe.smodel.ciftiAdditionalInfo.ciftiGeomFile =struct('brainStructureLabel', {}, 'geomFile', {}, 'areaFile', {});
--
You received this message because you are subscribed to the Google Groups "SwE-Toolbox Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swe-toolbox...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/9d26d07f-c8ed-4644-8136-e42ed8819f5b%40googlegroups.com.
<Auto Generated Inline Image 1.png>

[External Email]
|
On 28 May 2020, at 17:27, Hupfeld,Kathleen E <khup...@ufl.edu> wrote:
Thanks Bryan! That potentially fixed the issue. Now my design matrix looks like this, although there are no significant results at p<0.001 as there were in the SPM flexible factorial model. (Although, this has only 3 subjects to test everything, so I'm not sure we'd expect much...)With taking out the global intercept column, would you say that this is the generally correct approach for modelling such a change over time with the SwE toolbox?Thanks so much for your help!Best wishes,
Kathleen
<image.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/CH2PR22MB18632FC9380B2A79F9A911F5D28E0%40CH2PR22MB1863.namprd22.prod.outlook.com.
[External Email]
To unsubscribe from this group and stop receiving emails from it, send an email to swe-t...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/9d26d07f-c8ed-4644-8136-e42ed8819f5b%40googlegroups.com.
<Auto Generated Inline Image 1.png>
--
You received this message because you are subscribed to a topic in the Google Groups "SwE-Toolbox Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swe-toolbox/AfJi5FNj7is/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swe-t...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/DB6PR01MB388077E7BAE0A6520EEE6254E08E0%40DB6PR01MB3880.eurprd01.prod.exchangelabs.com.
--
You received this message because you are subscribed to the Google Groups "SwE-Toolbox Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swe-t...@googlegroups.com.
1) If I wanted to compare also the results of running a nonparametric SWE analysis, what do I need to put for the "Contrast" field? So far, I've tried running nonparametric with all of the defaults, and e.g., tried to select a T contrast of [-4.1 -4.1 6.4 4.8 1.1 -4.1] for my first SWE model above (to model the predicted effects of time) and [0 0 0 1] for my second SWE model above (to put a 1 over the time column). However, in both cases I received the following error; am I specifying the contrast incorrectly in these cases?Error using swe_run_smodel (line 827)contrast not well specified
2) In general, in the SWE toolbox, is there a way to look at voxelwise FWE<0.05 results, as there is in regular SPM? In the results GUI for SWE it only provides the option to look at FDR and uncorr. p results.
1) Whoops, I included a screenshot of the flexible factorial model that included one extra covariate. This is the model with the same covariates as the SWE models: TIV, age, sex. I double checked that these are the same as the above SWE models (same values & in the same order).--The third covariate (sex) looks reasonable when comparing between FF and SWE. In the results, it is bright for two subjects at the top and for two subjects in the middle of the sample.
--I agree, however, that the TIV and age covariates do look different in the FF model vs. SWE models. Could this perhaps be due to differences in centering options? For the FF model, I have retained the SPM default for centering the covariates based on the overall mean. Looking at the SWE toolbox options, for covariates we just enter the vector and name. If I mean-centered the covariates myself, then they would perhaps look more similar to the FF model?
2) Zero padding the contrasts worked; easy fix. Thank you!!Thanks so much for your helpful answers!Best,
Kathleen
On Thursday, June 4, 2020 at 12:29:04 PM UTC-4, Thomas Nichols wrote:Dear Kathleen,One quick question about the flexible factorial vs SwE approach is that I count 4 nuisance variables in the former and only 3 in SwE that look *really* different in the design matrix image. Are you sure they models are equivalent with the exception of the subject intercepts in the flexible factorial?1) If I wanted to compare also the results of running a nonparametric SWE analysis, what do I need to put for the "Contrast" field? So far, I've tried running nonparametric with all of the defaults, and e.g., tried to select a T contrast of [-4.1 -4.1 6.4 4.8 1.1 -4.1] for my first SWE model above (to model the predicted effects of time) and [0 0 0 1] for my second SWE model above (to put a 1 over the time column). However, in both cases I received the following error; am I specifying the contrast incorrectly in these cases?Error using swe_run_smodel (line 827)contrast not well specifiedSorry, SwE doesn't pad the contrast with extra zeros at the end. You need to add zeros so that the contrast has the same number of columns as the design matrix. I've added an issue to remind us to add zero-padding functionality at some point.2) In general, in the SWE toolbox, is there a way to look at voxelwise FWE<0.05 results, as there is in regular SPM? In the results GUI for SWE it only provides the option to look at FDR and uncorr. p results.When you use the nonparametric, wild bootstrap mode you'll be able to look at FWE<0.05 results.-TomThomas Nichols, PhDProfessor of Neuroimaging StatisticsNuffield Department of Population Health | University of Oxford
Big Data Institute | Li Ka Shing Centre for Health Information and Discovery
Old Road Campus | Headington | Oxford | OX3 7LF | United Kingdom
T: +44 1865 743590 | E: thomas...@bdi.ox.ac.uk
W: http://nisox.org | http://www.bdi.ox.ac.uk
--
You received this message because you are subscribed to the Google Groups "SwE-Toolbox Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swe-toolbox...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/192c4310-5a0f-4a4b-9b74-32e382aafb80o%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/d5cfb135-04b3-4105-8aa3-9a89b55aad3fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/d4124cbe-3541-4cb4-a654-204eb2841b1an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swe-toolbox/6af02d2e-4861-4d98-ae10-47a0bf8a8933n%40googlegroups.com.