I am trying to create a loop for labeling variables. For that, I'm trying to use the following macro:
local diaglbl "=1 if high blood pressure diag" "=1 if mult diag high blood press" "=1 if coronary hrt disease diag" ///
"=1 if angina diagnosis" "=1 if heart attack diag" "=1 if other heart disease diag" "=1 if stroke diagnosis" ///
"=1 if emphysema diagnosis" "=1 if chronc bronchits last 12 mths" "=1 if high cholesterol diagnosis" ///
"=1 if cancer diagnosis" "=1 if diabetes diagnosis" "=1 if joint pain last 12 months" ///
"=1 if arthritis diagnosis" "=1 if asthma diagnosis"
Problem is that my outer quotations marks (only the first and the last) disappear when I check for macro using macro dir
. I tried using `" at the beginning and "' at the end, but it still doesn't work. Is there a way to solve this, or is there a smarter way to automatically label multiple variables, but with different labels?