根据另一个变量的值计算变量

发布于 2025-01-14 21:08:31 字数 371 浏览 5 评论 0原文

我正在学习 SPSS 的研究方法课程,但我对如何输入和定义代表某一点之后含义的值有点困惑。例如,我正在解决的问题是:

假设以下索引分数代表一项旨在了解个人抑郁程度的新调查的表现。根据调查设计,假设得分高于 20 代表抑郁个体。
分数:13.5、15.7、14.3、16.7、21.2、20.7、22.3、17.4、16.8 和 12.4
代表抑郁个体的那些个体的相对频率是多少?

如何定义或使超过 20 的值标记为“抑郁”以准确计算相对频率?

请并谢谢您!

变量和问题的图片

I'm learning SPSS for a research methods class but I'm a bit confused on how to enter and define values that represent a meaning after a certain point. For example, the problem I am working on states:

Suppose the following indexed scores represent performance on a new survey meant to understand an individual’s level of depression. Suppose a score of above 20 represents a depressed individual based on the survey design.
Scores: 13.5, 15.7, 14.3, 16.7, 21.2, 20.7, 22.3, 17.4, 16.8, and 12.4
What is the relative frequency of those individuals that represent depressed individuals?

How would one define or make the values over 20 marked as "depressed" to accurately calculate the relative frequency?

Please and thank you!

Picture of the variables and question

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2025-01-21 21:08:31

您需要根据现有变量计算一个新变量,如果原始变量超过阈值,则该变量的值为 1,否则为 0。有几种方法可以做到这一点,这是最简单的一种:

compute depressed=(score>-20).

您现在可以添加标签并分析:

value labels depressed 
    1  "depressed: score over 20"
    0  "score not over 20".
frequencies depressed.

You need to calculate a new variable based on the existing one which will have a value of 1 if the original variable is over the threshold, and 0 if not. There are a few ways to do that, this is the simplest one:

compute depressed=(score>-20).

You can now add labels and analyse:

value labels depressed 
    1  "depressed: score over 20"
    0  "score not over 20".
frequencies depressed.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文