Page 1 of 1

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

Posted: Wed Nov 17, 2021 5:57 pm
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.

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

Posted: Fri Nov 19, 2021 5:09 am
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