Date: Tue, 21 Dec 2010 09:41:03 +0800
Reply-To: Murphy Choy <goladin@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Murphy Choy <goladin@GMAIL.COM>
Subject: Re: Identify multiple births
In-Reply-To: <374495FE-C29E-4917-9113-C9A392879A3E@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I think what you can do is to first sort by mother's ID and DOB.
Typically using a retain statement, you can construct a baby ID for each
birth by the mother.
Using the mother's ID and baby's ID, you can than aggregate the results.
As Dan mentioned, please remember to set up a date difference of at least 90
days between birth or whatever is the best!
On Tue, Dec 21, 2010 at 9:16 AM, LC <chloegal04@gmail.com> wrote:
> Hi,
> I've some got some birth data. I would to identify twins, triplets etc
> from the data. I have the mothers' unique identifier and baby date of
> birth. Appreciate any inputs. Thanks!
>
--
Regards,
Murphy Choy
Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9
DataShaping Certified SAS Professional
|