Date: Tue, 28 Dec 2004 11:45:08 -0600
Reply-To: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Subject: Re: How can I select matched controls for 1:m case-control study
Content-Type: text/plain; charset="iso-8859-1"
What I think you are looking for is a simple SQL code should get you what you want in the fewest number of lines of code and still keep the readability to a maximum.
Search our arcives for:
Simple data querying problem
since: 01 december 2004
And you will find a solution to a problem that you can easily modify to fit your needs.
From: SAS(r) Discussion on behalf of zhang yewu
Sent: Tue 12/28/2004 10:17 AM
Subject: How can I select matched controls for 1:m case-control study
I have two data set, one is for patients(cases), and the another for
non-patients(controls). the variables of two data sets are same. I should
pick out m matched nopatients for each patient. In each matched subgroup, a
patient and m non-patients should be same address, sex, and their age
difference shoud be within 6 months.
how can I make it?