Hello, I have a dataset which consists of over 100 continuous variables. What I want to do is to creat corresponding dummy variables in the same dataset according to their medians. Because of the large number of variables, I'd like to do it by means of %macro. In the attached, I first input a dataset as an example and provide some codes (syntax) that I've tried. I have basic ability in programming, but not in coding macro syntax at all. Could you please do me a favor? I apprecite your efforts and help.
... View more