spss如何求个案数量(SPSS-数据的预处理02)

首页常识更新时间:2023-01-11 13:28:59

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学院独创,如有侵权请联系删除。

,
展开阅读全文
推荐内容
热门内容
热门文章

© 2007-2022 http://www.anhuiqq.cn,All Rights Reserved.