I wonder what's the rationale behind the behaviour of egen's anymatch() and anycount() functions when used together with an -if- statement.
From the help file:
This seems like a major deviation from Stata's standard way of generating new variables in the presence of an -if- statement. I'm not complaining, as this exception is clearly reported in the help file. I'm just curious.
From the help file:
Code:
Values for any observations excluded by either if or in are set to 0 (not missing).
Comment