Date: Mon, 27 Dec 2010 23:28: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: <4DFCE2870A314E0BBD45F2D664E97C16@D1871RB1>
Content-Type: text/plain; charset=ISO-8859-1
Hi Nat,
I think we are just using the possible ways to remedy the scenario. If I am
not wrong, regardless of the months, if the babies are from the same period
(which needs some serious definition), they are considered multiple births.
Let's just give a suggested solution and let the lady take it from here.
On Mon, Dec 27, 2010 at 9:57 PM, Nat Wooding <nathani@verizon.net> wrote:
> The issue that I was trying to address is how to handle a pregnancy that
> has
> multiple fetuses and one or more are tardy and linger in utero. I have no
> professional experience in this area and really do not know whether the
> difference in actual dates of birth are more than 24 hours. I included the
> one record for id 7500 for Feb 1, 1995 to include a bizarre example of such
> a situation.
>
> You asked about how to know whether the baby is a twin, etc. My deliveries
> variable counts the number of births for the mother in the year and in
> effect assumes that the mother does not have two separate pregnancies in a
> single year.
>
> Nat
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Chua
> Lily
> Sent: Monday, December 27, 2010 3:58 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Identify multiple births
>
> Hi Murphy,
> there's some problem with ID 7500. She had 1 set of quintets (in
> 1994/95) and 1 singleton (1998). But i don't think was correctly shown.
>
> On Mon, Dec 27, 2010 at 3:22 PM, Chua Lily <chloegal04@gmail.com> wrote:
>
> > Hi Murphy,
> > thanks for yr program. But i encountered some errors. The problem lies
> with
> > the LAG function.
> >
> > Hi Nat,
> > thanks...how can i know whether each baby is a twin birth or triplet etc.
> >
> > On Tue, Dec 21, 2010 at 10:38 PM, Nat Wooding <nathani@verizon.net>
> > wrote:
> >
> > > I think that your basic solution can be a little simpler than the one
> > that
> > > Art offered if you 1) assume that there will not be two separate
> > > pregnancies
> > > in same year or in January of the following year.
> > >
> > > For grins, I added an new mother ID, 7500, and gave her quints born on
> > two
> > > different days in December plus one on New Years Day.
> > >
> > > Nat Wooding
> > >
> > > data have;
> > > informat Birth_Child_DOB ddmmyy10.;
> > > format Birth_Child_DOB ddmmyy10.;
> > > input Birth_Child_DOB Mother_ID @@;
> > >
> > > Year = Year( Birth_Child_DOB ) ;
> > >
> > > If Month(Birth_Child_Dob) = 1 then Year = Year-1;
> > >
> > > cards;
> > > 13/2/1993 7477 3/11/1993 7478 3/1/1993 7479 14/10/1993 7480 21/1/1993
> > > 7481 15/5/1993 7499 15/5/1993 7499 25/12/1994 7500 25/12/1994 7500
> > > 02/01/1995 7500 25/12/1994 7500 06/12/1998 7500 26/12/1994 7500
> > >
> > > proc sort data=have;
> > > by Mother_ID Year;
> > > run;
> > > ;
> > > Data Births;
> > >
> > > do until( last.Year);
> > > set have;
> > > by Mother_ID Year;
> > > Deliveries+1;
> > > end;
> > > output;
> > > Deliveries = 0;
> > > run;
> > >
> > >
> > > -----Original Message-----
> > > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> > Chua
> > > Lily
> > > Sent: Monday, December 20, 2010 10:07 PM
> > > To: SAS-L@LISTSERV.UGA.EDU
> > > Subject: Re: Identify multiple births
> > >
> > > Hi,
> > > sample data as follows. Multiple births refer to babies delivered at
> the
> > > same time, eg twins, triplets.
> > > Eg ID 7499 gave birth to twins. My objective is to find out the type of
> > > births - single, twins, triplet etc.
> > >
> > > Birth_Child_DOB Mother_ID
> > > 13/2/1993 7477 3/11/1993 7478 3/1/1993 7479 14/10/1993 7480
> 21/1/1993
> > > 7481 15/5/1993 7499 15/5/1993 7499
> > >
> > >
> > >
> > > On Tue, Dec 21, 2010 at 9:41 AM, Murphy Choy <goladin@gmail.com>
> wrote:
> > >
> > > > 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
> > > >
> > >
> > >
> >
> >
> >
>
--
Regards,
Murphy Choy
Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9
DataShaping Certified SAS Professional
|