Hi,
I want to do the following
gen diabetes=.
replace diabetes=1 if x==1 | y==1
But I have 60 variables like x and y and names do not have any sequence. I don't want the argument to be long.
Solving suggestion with macro and loop is appreciated.
Thanks
I want to do the following
gen diabetes=.
replace diabetes=1 if x==1 | y==1
But I have 60 variables like x and y and names do not have any sequence. I don't want the argument to be long.
Solving suggestion with macro and loop is appreciated.
Thanks
Comment