Hi, I am working on my own dataset and ran into a question.
I am trying to assign group# to my dataset to categorize them
I created a new variable but I wasn't sure if it's feasible to have multiple conditions..
for example..
if I want to assign people with disease condition and defibrillator...
--------------------
generate group=.
replace group=1 if ca=="history of cardiac amyloidosis" and device=="yes"
----------
clearly the second command didn't work.. is it possible assign mutiple conditions when generating a variable?
appreciate your help!!