Howdy, Stranger!

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

Supported by

How to transform a new variable in JASP?

Hi JASP friends,

Could anybody help explain and guide me pedagogically on how to transform a continuous variable (e.g., age) into a categorical variable dichotomized into two levels (e.g., under 26 and 26 and over) in JASP?

Grateful for the help.

Per, the JASP lover

Comments

  • Insert new column using R code called AtLeast26:

    as.numeric(Age >= 26)

  • @patc3 I am not R person.🤪 Any other way (more drag and drop)?

  • edited February 2

    Hi. After I cant turn this into a categorical variable (with labeling).


  • It looks like you can't change labels for a nominal variable (where the value itself can act as a label, since text is allowed). If you want a numeric value (which you can use in analyses) with labels, you can change the variable type to scale (currently yours is nominal):


  • @EJ could you please guide me?

  • You're welcome for the help Per 🙃

    Did you try to change the values when it's a nominal variable, or change the labels when it's a numeric variable? Either way you can get the text you want. You can try both too and see which one you like best/works best for you.

    You can even create two versions of the same variable, one scale with text labels, and one nominal with text values.

  • I refer to patc3 here. I do not use these data editing tools a lot myself. Feel free to suggest improvements on our GitHub page...

    EJ

Sign In or Register to comment.