Hi, I am trying to make a new variable called "change" which generates the differences for variable emplystat between my observations that have values of 1,2,3. However when I use the command "gen change = d.emplystat" I keep getting blank values. How do i create this change variable so that it will only generate values if there is a difference (say > 0). I have tried using an "if" command but i can't get it still. Thanks in advance, would appreciate any help.
-
Login or Register
- Log in with

Comment