creating a variable with multiple condition

Re: creating a variable with multiple condition

by Eunjeong -
Number of replies: 0

Oh i used the numbers instead and it worked! 

I thought we could use them interchangeably.....


generate group=.

replace group=1 if ca ==1 & device ==1


thanks for the help!