SPSS汇总(Aggregate)过程
汇总过程用于数据分类汇总操作,选择菜单“数据(Data)→汇总(Aggregate)”,弹出如图4-9所示的“汇总设置”对话框,组成部分如下所述。
1.分界变量(Break Variable(s))选项栏
选入分界变量。
2.汇总变量(Summaries of Variable(s))选项栏
其中选入的是待汇总的变量,单击其下的“函数(Function)”按钮,则弹出如图4-10所示的“汇总函数”对话框,每个选项代表了一个汇总函数。如果要改变系统默认的新变量名,则单击“变量名与标签(Name&Label)”按钮,在弹出的对话框中修改即可。
● 摘要统计量(Summary Statistics)。
● 特定值(Specific Values)。
● 个案数(Number of Cases)。
● 百分比(Percentages)。
● 分数(Fractions)。
● 计数(Counts)。
3.保存(Save)选项栏
其下有三个选项,各选项功能如下。
● 将汇总变量添加到活动数据集(Add aggregated variables to active dataset)中。
● 创建只包含汇总变量的新数据集(Create a new dataset containing only the aggregated variables)。
● 写入只包含汇总变量的新数据文件(Write a new data file containing only the aggregated variables)。
4.用于大型数据集的选项(Options for Very Large Datasets)选项栏
此选项栏是为大型数据集提供的。
● 文件已经按分界变量排序(File is already sorted on break variable(s))。
● 汇总前对文件进行排序(Sort file before aggregating)。