Hello folks, I need to create a new variable based on the calculation of two existing variables (A and B) but in the meantime, there are missing cases in both A and B. How could I get A/B while letting Stata ignore all the missing cases? I'm aware that -egen- can work with missing option but not -gen-. I don't want to treat missing as 0 as well. Any ideas please? Thanks!
-
Login or Register
- Log in with
Comment