Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

EQ5D5L

Hello! I'm new to JASP, decently experienced with SAS coding with both SQL and data steps. I have a variable for the EQ5D5L with the 5 levels plus 2 that will end up being labeled as missing.

I would like to create a new variable, mobility, where the old variable label 1 will equal 0, 2=0.096, 3=0.122, and so on. How do I do this in JASP using the drag n drop? The old labels 6 and 7 will be missing in the new variable.

Thank you!

Comments

  • I am asking our expert...

    EJ

  • Hi!

    Below one idea on how to approach this.

    I created a column EQ5DL with values 1 through 5 and two missing values (but with different labels).

    Next I created a computed column with the drag and drop interface. Make sure to changed the "Computed type" from the default

    to "Computed with drag-and-drop". Next, you can

    1. Drag "ifElse(y)" from the right to the middle.
    2. Drag = to "test".
    3. Drag EQ5DL (or another variable) to the left hand side of the "="
    4. Click the right hand side and enter a number.
    5. Click "then" and enter the new value.
    6. Drag "ifElse(y)" to "else".
    7. repeat steps 2 - 6 for as many times as you want to recode values.
    8. Drag the original variable ("EQ5DL" in the screenshot below) to the final "else". This ensures that any values not specified remain unchanged.


    I hope this helps, please let me know if anything is unclear!

    Don

Sign In or Register to comment.