Hi All,

Hopefully someone could kindly help me with this problem.

I want to create a new variable called "VALID" and the way this variable would be coded would depend on two existing variables called "V" and "SP".

So e.g. to code for "VALID", if "V" is 1R3, 1R6, 2R3, 2R6, a set of coding method based on "SP" would be implemented, and if "V" is 1L3, 1L6, 2L3, 2L6, another set of coding method based on "SP" would be implemented.

I have tried to create "VALID" for when "V" is 1R3, 1R6, 2R3, or 2R6.

If I could have some guidance on where I went wrong with these commands, it would be much appreciated. Thanks all!

Hopefully someone could kindly help me with this problem.

I want to create a new variable called "VALID" and the way this variable would be coded would depend on two existing variables called "V" and "SP".

So e.g. to code for "VALID", if "V" is 1R3, 1R6, 2R3, 2R6, a set of coding method based on "SP" would be implemented, and if "V" is 1L3, 1L6, 2L3, 2L6, another set of coding method based on "SP" would be implemented.

I have tried to create "VALID" for when "V" is 1R3, 1R6, 2R3, or 2R6.

If I could have some guidance on where I went wrong with these commands, it would be much appreciated. Thanks all!

## Comment