首页 » 数据分析 经验分享 » 全文

Spss 18版本前的Friedman检验 Post-hoc comparisons spss syntax代码

2010 年 12 月 11 日 xuemei 浏览:1,185 最后更新:2010 年 12 月 17 日

刚从同学那里了解到spss.18之前的版本不能自动进行单因素多水平重复测量的Friedman检验,需要用spss syntax代码实现。而spss.18后就可以自己算了。在网上找到一段代码,并且也没有介绍怎么运行,可能对spss syntax代码不了解的同学用起来还是有些不便。自己琢磨了一下,所以在这里给大家一起分享浅见,不对的地方请高人指点。

首先弗里德曼检验(friedman test)是一种非参数统计(nonparametric statistics),在不知道总体分布或者不考虑总体分布的情况下适用,数据是等级数据。举一个列子,有14个被试,采用6种不同的训练水平,每次训练后进行测试,得到成绩,即一个单因素多水平重复测量。首先,我们要对每次训练后的成绩转化为等级,即在spss中数据是ordinal的。如下:

当我们的数据在spss中准备好后,打开数据文件datasample.sav文件。然后从下来菜单File中open syntax,浏览到spss_friedmanph.sps(下载地址http://timo.gnambs.at/en/scripts/friedmanposthoc),点击打开。这里,根据自己的数据需要进行一些修改,首先在文件中找到以下的代码:

*START Configuration 1*/
*Load demo file.
get file = data_friedman.sav.
*Significance level.
compute #alpha = 0.05
*Number of variables to compare.
compute #varcnt = 6.
*Sample size.
compute #sample =14.

把上面删掉的部分根据自己的数据修改:首先是数据文件、变量数目、样本数目,如果你觉得.05还不够严格,你可以改成.01等。然后点击Run all,就可以啦。结果如下:

如果上面mean rank difference of variables中的数据与下面的Critical rank difference(Schaich & Hamerle, 1984)或者Critical rank difference(Conover,1971,1980)中的数字比较,大则在0.05水平上显著了。

在报道结果的时候需要引用文献:

*    > Bortz, J., Lienert, G. & Boehnke, K. (2000). Verteilungsfreie Methoden in der Biostatistik. Berlin: Springer.
*    > Schaich, E. & Hamerle, A. (1984). Verteilungsfreie statistische Prverfahren. Berlin: Springer.
*    > Conover, W. J. (1971,1980). Practical nonparametric statistics. New York: Wiley.

相关文章

  1. 批处理文件学习1
  2. 批处理文件学习2

分类: 数据分析,经验分享

标签:, , ,

PNAS:大脑如何根据收益和成本作出决策? freesurfer分析3D数据中文教程

发表评论

(必填)

(必填), (隐藏)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

TrackBack URL  |  这篇文章上的评论的 RSS feed


最新文章

热门文章

近期评论

标签云

amygdala Analyze bat brain anatomy brain structure BrainVoyager call Cerebral Cortex choice dcm2nii del DICOM e-prime e-prime、gonogo e-prime、时间精确度 e-prime使用指南 e_prime for for循环 freesurfer fsl functional connectivity go-nogo GoldenHelix、gene、SVS gonogo、e-prime if if判断 linux MRI MRIconvert MRIcron NIfRI rd Rem rest rm spm spm5 spm8 start tutorial 命令管道符 批处理 文件定向符 文件通配符

链接表

站点管理