mardi 18 août 2020

Creating a new variabel based on others

I have a set of 5 questions, that can be answered with a score from 1-5. Some are not answered, resulting in NA. I want to create a new variabel, that is "1" when all questions are answered, i.e. no NA in any of the 5 questions, and "0" when one or more questionas are not answered (=NA). Could anyone help?

Aucun commentaire:

Enregistrer un commentaire