I am trying to create a macro and it is unclear to me how to go about it. My data is several hundred thousand observations across 77 different locations, ten of these locations are 'treated'. I want to make a list of the locations that surround these ten treated locations, but the only data I have is the distance from each observation to the treated location. I can use the tabulate command along with a couple of 'if' statements to get a list of the locations that surround the ten treatment locations, but how can I save that list to a macro for future use?
-
Login or Register
- Log in with
Comment