+ Reply to Thread
Results 1 to 2 of 2

Thread: Shifting Variable SPSS

  1. #1
    Points: 41, Level: 1
    Level completed: 82%, Points required for next Level: 9

    Thanked 0 Times in 0 Posts

    Shifting Variable SPSS


    Does anyone know how to conduct a shift transformation in SPSS?

    Specifically, I want to test effect of a genotype on an alcohol outcome at low and high environmental risk.

    For example, say I have a environmental variable that ranges from 0 (minimum) to 10 (maximum), with the mean of 3 and SD of 2. My low group is those who are 1 SD below the mean: 3 2 = 1. My high group is those who are 1 SD above the mean: 3 + 2 = 5.

    For the low environmental risk condition, how do I recode the environment variable set to be zero at its original score of 1 (that is, 1 SD below the original mean), thus this new environmental variable now range from -1 to 9 (instead of the original range of 0 to 10).

    I do not know how to do this in SPSS, I'm assuming I need to shift my variable somehow.

  2. #2
    Points: 7,069, Level: 55
    Level completed: 60%, Points required for next Level: 81

    Thanked 42 Times in 39 Posts

    Re: Shifting Variable SPSS

    I'm not sure I understand what you are trying to do, but you can recode in SPSS easily. I would recommend recoding into a new variable and then analyzing the new variable instead of replacing the old variable.

    Select Transform > Recode into different variables.
    Select your environmental variable and move it over to the variable box.
    Click in the Output Variable name box and give the new variable a name and click Change.
    Click Old and New Values.
    Click the Old Value "Value" radio button and type 0 into the box.
    Click in the New Value "Value" box and type -1 into the box.
    Click Add.
    Repeat for values 1-10.
    Click Continue.
    Click OK.

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Advertise on Talk Stats