How to we get a local macro with unique values of a given variable + 1?
The code below outputs a local macro with the unique values of var1. How do I then get another macro with each one of those values + 1?
I tried the following but it does not work.
The code below outputs a local macro with the unique values of var1. How do I then get another macro with each one of those values + 1?
Code:
clear input float var1 1 10 5 5 7 end levelsof var1, local(v1) display "`v1'"
Code:
local v1_plus1 = `v1' +1
Comment