Re-basing multi-var combine using or

1     3     Edited Nov 14, 2015 by Anonymous

How would I re-base a 'multi-var combine using or' syntax to all respondents? Here's the original syntax that RB created:

pctin(or(Q1==1,Q2==1),true)

Comments

0

robsmith Mar 28, 2015

Enclose the or (...) statement in an ifnull(..., false) statement, like this:

pctin(ifnull(or(Q1==1, Q2==1),false),true)

The ifnull statement converts all missing values to false.

0

asdf – robsmith 11/14/2015 7:31:21 PM

0

fdsafdsafdsa – robsmith 11/14/2015 7:31:43 PM

Leave a Comment

Please sign in to leave a comment.