From | Richard Williams <[email protected]> |
To | [email protected] |
Subject | RE: st: identify group of observations |
Date | Thu, 29 Apr 2004 07:34:27 -0500 |
At 01:23 PM 4/29/2004 +0100, Nick Cox wrote:
According to the original problem, flag is supposes to be coded "01" or "02". Ergo, how aboutGood point. However, as we're playing minor improvements, note this too needs a fix: gen grp = sum(flag == "01") if flag == "" or gen grp = sum(flag == "01") if mi(flag) or perhaps even gen grp = sum(flag == "01") if trim(flag) == "" to catch "missings" that are somehow spaces. Any more?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |