Dear Yunee Lee, dear SPMers, the option to leave out non-existing conditions in contrasts is indeed available. However, it has some limitations: * only works properly for 1 "missing" condition, which must be the last one specified * does not care about estimability of contrasts Feel free to try it, Volkmar Quoting Maria Wimber <[log in to unmask]>: > Dear Yune Lee, dear SPMers - > > > regarding the problem of missing conditions in a first level design > matrix, see the following posts: > > http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind0703&L=SPM&D=0&P=16974 > http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind05&L=SPM&D=0&P=127194 > > However, I also found this really promising bit in the readme.txt of > the SPM5 updates: > > Add advanced contrast spec option for 1st level contrasts - address > columns of design matrix by semantics instead of column numbers. This > helps to automatically set up contrasts on designs that may have > different #columns for each session/subject (e.g. missing conditions, > modulations). > ------------------------------------------------------------------------ > r803 | volkmar | 2007-04-27 09:37:16 +0100 (Fri, 27 Apr 2007) | 4 lines > Changed paths: > M /trunk/spm_config.m > A /trunk/spm_config_results.m > M /trunk/spm_getSPM.m > M /trunk/spm_jobman.m > M /trunk/spm_results_ui.m > > Added batch support to spm_getSPM.m and spm_results_ui.m - not yet complete. > Re-added job specific help to spm_jobman.m - not shown/created on > MATLAB < 7.1 > > > Unfortunately, I wasn't able to figure if this option is indeed > available... Has anybody tried this out, or are the modifications still > in progress? > > Thanks, > Maria > > > Yune Lee schrieb: >> Dear SPM experts, >> I'm trying to write a GLM batch code for SPM5 and wondering if >> there is any way to get around with the problem where a particular >> condition doesn't happen in the run. >> When manually modeling GLM, I simply did not define the condition >> name, but in this batch case, the condition name is defined >> regardless of its occuring, but I put 'NaN' for the onset and >> duration >> for the condition that doesn't occur in that run. However, I have >> an error message saying "mismatch between number of onset and >> number of duration". >> Did anyone run into the same problem or if you have any insights, >> please give me any help. Thanks, YSL > > -- > Maria Wimber > Department of Neurology II > Otto-von-Guericke University > 39110 Magdeburg > > office: Zenit I/ Room 283 > phone: +49 (0)391 61 17 543 > mailto: [log in to unmask]