How to create a new variable with specific levels from 2?

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
Chase G
Posts: 2
Joined: Wed Nov 17, 2021 5:55 pm

How to create a new variable with specific levels from 2?

Post by Chase G »

Hello,

I am trying to compare just two levels out of two separate variables that involve 5 levels each.

They are two nominal variables on a 5 point scale and I want to just take out the 5's (Extremely Important) raters from both separate categories.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: How to create a new variable with specific levels from 2

Post by jonathon »

if you want to filter these out of the whole data set, then you can use filters, and use a filter like:

column1 != 5 and column2 != 5

https://blog.jamovi.org/2018/04/25/jamovi-filters.html

alternatively, you could use transformed variables, and construct a new variable for each column with the 5 removed. you could use the formula:

if $source == 5 use NA
else use $source

https://blog.jamovi.org/2018/10/23/transforming-variables.html

cheers

jonathon
Post Reply