Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[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." <psacaman@jhsph.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index