fmri|SPM contrast manager

本文详细解释了在SPM中通过两种不同方式建立对比的方法及其区别。一种是通过results窗口进行直观设置,另一种是利用Batch Editor创建脚本,适用于大量被试的数据分析。文中还特别说明了t对比和F对比在生成文件类型上的不同。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

整理一下遇到的基础问题

问题1:batch建立的contrast manager 和 results建的contrast是一样的么?

是的,一样的
建立contrast的两种方法,一种点点点,一种通过batch。

1 通常的点点点:点击results,选择估计好的SPM.mat,出现下图,这种也是contrast manager(小窗标题),好处在于分析时,条件设置直观。

在这里插入图片描述

2 Batch editor:点击fmri menu - Batch - SPM - Stats - Contrast manager

batch的好处是可以保存成脚本,被试多的情况可以通过代码跑1st level。
在这里插入图片描述
但是输入Weights matrix时需要注意输入,可以在第一种点点点里验证一下输入的matrix是否是自己需要的。比如第一种方法里的F contrast在batch里需要输入的是:
[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1]
而result小窗输入的是:
1
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
在这里插入图片描述
在这里插入图片描述

问题2:虽然两种方法都生成smpF_001.nii,但是batch方法不生成2ed level需要的con_文件,生成的是ess_,二者性质相同么?

解:

he various images created by SPM can be summarized as follows (thanks to Tom Johnstone!):

  1. beta_***.img: these are created during the estimation stage - i.e. the fitting of the model. There is one beta image per column of the design matrix. These are the parameter estimates of course, with the first ones corresponding to the variables of interest, the last one corresponding to the constant in the model.

  2. con_***.img: these are created when calculating t-contrasts and correspond to weighted sums of the beta weights. The numbering of the contrast images corresponds to the number of the contrast created in the contrast manager

  3. SPM{t} is computed by dividing the contrast image (con_***.img) by its standard error (a multiple of the square root of ResMS.img). The SPM{t} is saved as spmT_***.img.

  4. ess_***.img: these are images of the extra sum of squares for the corresponding F-contrasts, corresponding to the con_*** images from a t-test.
    参考链接:http://brainimaging.waisman.wisc.edu/~oakes/spm/spm_random_effects.html

batch 程序
在这里插入图片描述
results 窗口
在这里插入图片描述

也就是为什么生成的是ess,是因为F contrast,contrast manager 和 results点点点生成内容是一致的。如果contrast为t-test,则生成con***.nii 文件。【= = 】
在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值