Creating a derived variable using complex logic

Re: Creating a derived variable using complex logic

by Bardia -
Number of replies: 0

I guess I can't post the answers here; but yours is not correct. Just read the instructions again. Your second command for example " replace disagree=1 if official==1 & opinion==1"; is the oppositeĀ  of what you are trying to do: it makes the "disagree" variable, presentĀ  while both "official" and "opinion" are 1 (i.e. they actually agree when both their values are "1").