我们运用SPSS软件对数据文件进行分析的时候,经常需要对数据进行分类汇总。那么如何操作呢?下面小编给大家分享一下。
SPSS软件
首先打卡SPSS数据分析软件,点击左上角的文件菜单,选择下拉菜单中的数据选项,如下图所示
接下来在弹出的打开数据文件中选择要进行分类汇总的文件,如下图所示
然后数据文件加载进SPSS主界面以后,我们就可以看到如下图所示的界面,这里我们需要对性别和学生类型进行分组,然后对成绩进行汇总,如下图所示
接下来点击顶部的数据菜单,然后选择下拉菜单中的汇总选项,如下图所示
接着会弹出汇总数据界面,我们将性别和学生类型放到分组变量中,然后将成绩放到汇总变量中,如下图所示,这里注意成绩默认加进汇总变量中是求的平均值
然后我们在往汇总变量中添加一个成绩,接着点击函数按钮,如下图所示
接下来在弹出的汇总函数界面中我们选择最大值选项,如下图所示
回到汇总数据界面以后,我们选中某个成绩汇总变量,然后点击名称与标签按钮可以修改汇总变量的显示名称,如下图所示
设置好以上的汇总信息以后,我们回到SPSS主界面就可以看到数据已经进行分类汇总了,如下图所示
SPSS-数据的预处理02
01.计数
SPSS的计数即对所有的个案或满足某条件的个案,计算若干个变量中有几个变量的值落在指定的区间内,并将计数结果存入一个新变量的过程。其中的关键步骤就是指定计数区间,计数区间有种描述方式,分别是:单个变量值、系统缺失值、系统或用户缺失值、给定最大值和最小值的区间、小于等于某指定值的区间、大于等于某指定值的区间。
SPSS counting is the process of calculating the values of several variables in a specified interval for all cases or cases meeting certain conditions, and storing the counting results in a new variable. The key step is to specify the counting interval. There are several ways to describe the counting interval: single variable value, system missing value, system or user missing value, interval of given maximum and minimum values, interval less than or equal to a specified value , The interval greater than or equal to a specified value.
操作步骤:【转换】→【对个案内的值计数】,然后选择参与计数的变量到【数字变量】中,在【目标变量】框中输入存放计数结果的变量名,并且可在【目标标签】中输入相应的变量名标签。
Operation steps: [Convert]→[Count the value in the case], then select the variable participating in the count to the [Numerical Variable], enter the name of the variable that stores the count result in the [Target Variable] box, and you can click the [Target Tag] 】Enter the corresponding variable name label.
02.分类汇总
分类汇总是按照某分类变量进行分类计算。SPSS实现分类汇总涉及两个主要方面:①按照哪个变量进行分类。②对哪个变量进行汇总,并指定对汇总变量计算哪些统计量。
Subtotal is calculated according to a certain categorical variable. The SPSS implementation of classification and aggregation involves two main aspects: ① According to which variable to classify. ② Which variable is to be summarized, and specify which statistics are calculated for the summary variable.
操作步骤:【数据】→【分类汇总】,指定分类变量到【分组变量】中,指定汇总变量到【变量摘要】中,点击“函数”按钮可指定对汇总变量计算哪些统计量。如果希望在结果文件中保存各分类组的个案数,则选择【个案数】选项。
Operation steps: [Data]→[Sub-total], specify categorical variables to [Grouping Variables], specify summary variables to [Variable Summary], click the "Function" button to specify some statistics for the calculation of summary variables. If you want to save the number of cases in each classification group in the result file, select the [Number of cases] option.
参考资料:谷歌翻译
本文由LearningYard学院独创,如有侵权请联系删除。