分享

用SPSS进行数据的对数转换?至正态

 cfplhys 2011-11-13

用SPSS进行数据的对数转换 至正态

(2011-10-30 16:53:44)

Transforming Data in SPSS

In this guide we will enter some data and then perform a transformation of the data. Transforming data is performed for a whole host of different reasons but one of the most common is to apply a transformation to data that is not normally distributed so that the new, transformed data is normally distributed. Transforming a non-normal distribution into a normal distribution is performed in a number of different ways depending on the original distribution of data but a common technique is to take the log of the data. In this example we will show you how SPSS allows you to do this.

There are an infinite possible ways to tranform data, although there are some approaches that are much more common than others. We will add extra examples of transforming data in the near future.

Data to Transform
36 32 45 41 29 22 18 36 10 40
  1. Your data should end up looking like the following:

    Remember that each individual's results go on a separate line (row) in SPSS.

    Transforming Data in SPSS

    Published with written permission from SPSS Inc, an IBM Company.

  2. Rename the variable "Data" instead of the default "VAR00001". You can name it something else if you wish.
  3. Click on Transform > Compute Variable... in the top menu.
    Transforming Data in SPSS

    Published with written permission from SPSS Inc, an IBM Company.

  4. You need to first select the function you would like to use. To do this click "All" in the "Function group:" box then scroll down in the "Functions and Special Variables:" box and click "Lg10" to select it.

    Transfer the Lg10 function into the "Numeric Expression:" box by pressing the SPSS Arrow Up Button button.

    Click the Data variable in the lefthand box and then click the SPSS Right Arrow Button button which will result in the expression you see in the "Numeric Expression:" box below.

    All to do now is to give this new variable a name. We have called the new variable "TrData". Type this name into the "Target Variable:" box in the top lefthand corner.

    Transforming Data in SPSS

    Published with written permission from SPSS Inc, an IBM Company.

  5. Click on the SPSS OK Button button.
  6. You will be presented with the SPSS Data Editor which will now show the log transformed data under the new variable name "TrData" that you defined.
    Transforming Data in SPSS

    Published with written permission from SPSS Inc, an IBM Company.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多