![]() Also, replace the ‘ 2‘ with the base of any other number that you want to log transform with.Īlso, don’t forget to fill in the ‘ Target Variable‘ box with the name of the new variable that will be created. Obviously, replace ‘ Data‘ with the name of the variable to be transformed. To do this, I will enter ‘ LN(Data)/LN(2)‘ into the ‘ Numeric Expression‘ window. Let’s say I want to log transform a variable with a base of 2 (instead of 10). Go to the ‘ Compute Variable‘ window again by selecting ‘ Transform > Compute Variable …‘.Ģ. However, there is a way to do this by creating a formula. Unfortunately, there isn’t a direct function to log transform data with a base other than 10 in SPSS. How to log transform data with a different base in SPSS Here is what my datasheet now looks like. This will be the newly log10 transformed data. The outputĪ new variable should now be present in your data sheet. Then click the ‘ OK‘ button to transform the data. So, in this example, I will enter ‘ LG10(Data)‘. Then in the ‘ Numeric Expression‘ window, type in ‘ LG10(X)‘, with X being replaced with the name of the variable to be transformed. In this example, my variable to be transformed is called ‘ Data‘, so I am calling the newly transformed variable ‘ Log10Data‘. I suggest calling this ‘ Log10X‘, with X being the name of the original variable. In the ‘ Compute Variable‘ window, enter the name of the new variable to be created in the ‘ Target Variable‘ box, found in the upper-left corner of the window. In SPSS, go to ‘ Transform > Compute Variable …‘.Ģ. In this example, I have a variable containing 10 numbers called ‘ Data‘.ġ. To log (log10) transform data in SPSS, simply follow the steps below. How to log (log10) transform data in SPSS Taking another example to elaborate on how log10 works, let’s work out what log10(1,000) is. ![]() In other words, the base number (i.e 10 in this case) to the power of what number is needed to make 100? Since, 10 x 10 (i.e. Let’s say we want to log10 transform the number ‘ 100‘. Understanding log transformation is best seen with an example. Usually, log transformation is performed with a base of 10, hence the term ‘ log10‘. Log transformation is used when data is highly skewed. I will also describe how to log transform data with a base other than 10. In this guide, I will show you how to log (log10) transform data in SPSS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |