Am trying to create an index variable (var4) by adding three component variables (var1, var2, var3). Vars 1 and 2 range from 0-100 and var3 is a 0/1 variable. (The describe command identifies the storage type of vars 1 and 2 as float and vars3 as byte.) So I’m trying to use the command gen var4=var1+var2+var3 which will run. The problem is if you list var4 to check the addition it just adds var1 and var2 and excludes var3. Thought this might be because of incompatible variable formats and changed var3 from byte to float but this didn’t work. Thoughts? Thanks, RB
-
Login or Register
- Log in with
Comment