Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Generating a matched pair sample for a case-control study
From
"Sacamano, Paul L." <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Generating a matched pair sample for a case-control study
Date
Fri, 7 Dec 2012 12:27:03 -0500
Hello,
I need to generate a sample of controls matching the age frequency distribution of the cases.
Matching will be 1 (case) to 2 (controls). There are a total 63 cases that have already been randomly selected, and I need to match them with 126 controls from a pool of subjects. Cases have a 30-day hospital readmission, controls do not. I currently have all the cases in a Stata file. The pool for selecting matched controls is an Excel file that I can easily copy and paste into Stata.
Is there a Stata command to generate a sample of matched pairs based on the age frequency distribution for cases that have already been randomly selected?
Thanks for the help,
Paul
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/