Unformatted text preview:

Computing TransformationsTransformations: Transforming variables to satisfy assumptionsTransformations: Computing transformations in SPSSTransformations: Two forms for computing transformationsTransformations: Functions and formulas for transformationsTransformations: Transformation of positively skewed variablesTransformations: Example of positively skewed variableTransformations: Transformation of negatively skewed variablesTransformations: Example of negatively skewed variableTransformations: The Square Transformation for LinearityTransformations: Example of the square transformationTransformations: Transformations for normalityTransformations: Determine whether reflection is requiredTransformations: Compute the adjustment to the argumentTransformations: Computing the logarithmic transformationTransformations: Specifying the transform variable name and functionTransformations: Adding the variable name to the functionTransformations: Adding the constant to the functionTransformations: The transformed variableTransformations: Computing the square root transformationSlide 21Slide 22Slide 23Slide 24Transformations: Computing the inverse transformationTransformations: Specifying the transform variable name and formulaSlide 27Transformations: Adjustment to the argument for the square transformationTransformations: Computing the square transformationSlide 30Slide 31SW388R7Data Analysis & Computers IISlide 1Computing TransformationsTransforming variablesTransformations for normalityTransformations for linearitySW388R7Data Analysis & Computers IISlide 2Transformations:Transforming variables to satisfy assumptionsWhen a metric variable fails to satisfy the assumption of normality, homogeneity of variance, or linearity, we may be able to correct the deficiency by using a transformation.We will consider three transformations for normality, homogeneity of variance, and linearity:the logarithmic transformationthe square root transformation, and the inverse transformationplus a fourth that may be useful for problems of linearity:the square transformationSW388R7Data Analysis & Computers IISlide 3Transformations:Computing transformations in SPSSIn SPSS, transformations are obtained by computing a new variable. SPSS functions are available for the logarithmic (LG10) and square root (SQRT) transformations. The inverse transformation uses a formula which divides one by the original value for each case.For each of these calculations, there may be data values which are not mathematically permissible. For example, the log of zero is not defined mathematically, division by zero is not permitted, and the square root of a negative number results in an “imaginary” value. We will usually adjust the values passed to the function to make certain that these illegal operations do not occur.SW388R7Data Analysis & Computers IISlide 4Transformations:Two forms for computing transformationsThere are two forms for each of the transformations to induce normality, depending on whether the distribution is skewed negatively to the left or skewed positively to the right. Both forms use the same SPSS functions and formula to calculate the transformations. The two forms differ in the value or argument passed to the functions and formula. The argument to the functions is an adjustment to the original value of the variable to make certain that all of the calculations are mathematically correct.SW388R7Data Analysis & Computers IISlide 5Transformations:Functions and formulas for transformationsSymbolically, if we let x stand for the argument passes to the function or formula, the calculations for the transformations are:Logarithmic transformation: compute log = LG10(x)Square root transformation: compute sqrt = SQRT(x)Inverse transformation: compute inv = -1 / (x)Square transformation: compute s2 = x * xFor all transformations, the argument must be greater than zero to guarantee that the calculations are mathematically legitimate.SW388R7Data Analysis & Computers IISlide 6Transformations:Transformation of positively skewed variablesFor positively skewed variables, the argument is an adjustment to the original value based on the minimum value for the variable.If the minimum value for a variable is zero, the adjustment requires that we add one to each value, e.g. x + 1.If the minimum value for a variable is a negative number (e.g., –6), the adjustment requires that we add the absolute value of the minimum value (e.g. 6) plus one (e.g. x + 6 + 1, which equals x +7).SW388R7Data Analysis & Computers IISlide 7Transformations:Example of positively skewed variableSuppose our dataset contains the number of books read (books) for 5 subjects: 1, 3, 0, 5, and 2, and the distribution is positively skewed.The minimum value for the variable books is 0. The adjustment for each case is books + 1.The transformations would be calculated as follows:Compute logBooks = LG10(books + 1)Compute sqrBooks = SQRT(books + 1)Compute invBooks = -1 / (books + 1)SW388R7Data Analysis & Computers IISlide 8Transformations:Transformation of negatively skewed variablesIf the distribution of a variable is negatively skewed, the adjustment of the values reverses, or reflects, the distribution so that it becomes positively skewed. The transformations are then computed on the values in the positively skewed distribution.Reflection is computed by subtracting all of the values for a variable from one plus the absolute value of maximum value for the variable. This results in a positively skewed distribution with all values larger than zero.When an analysis uses a transformation involving reflection, we must remember that this will reverse the direction of all of the relationships in which the variable is involved. Our interpretation of relationships must be adjusted accordingly.SW388R7Data Analysis & Computers IISlide 9Transformations:Example of negatively skewed variableSuppose our dataset contains the number of books read (books) for 5 subjects: 1, 3, 0, 5, and 2, and the distribution is negatively skewed.The maximum value for the variable books is 5. The adjustment for each case is 6 - books.The transformations would be calculated as follows:Compute logBooks = LG10(6 - books)Compute sqrBooks = SQRT(6 - books)Compute invBooks = -1 / (6 - books)SW388R7Data Analysis & Computers IISlide 10Transformations:The Square Transformation for LinearityThe


View Full Document

UT SW 388R - Computing Transformations

Download Computing Transformations
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Computing Transformations and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Computing Transformations 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?