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]

Re: st: sampling using matching variables


From   Christopher Swearingen <christopher.swearingen@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: sampling using matching variables
Date   Tue, 17 Aug 2010 11:29:14 -0500

Debs,

I have used the contributed psmatch2, a propensity scoring method, to
match groups on various covariates.

findit psmatch2

*** 1-1 age only matching
psmatch2 nonwhite age, noreplacement
gen age_matched = _weight

*** 1-1 age & education matching
psmatch2 nonwhite age education, noreplacement
gen age_education_matched = _weight

*** 1-1 age & education & gender matching
psmatch2 nonwhite age education gender, noreplacement
gen age_education_gender_matched = _weight

~c
________________________________________________________
Christopher Swearingen, Ph.D.
Assistant Professor of Pediatrics and Biostatistics
University of Arkansas for Medical Sciences
Department of Pedatrics
One Children's Way, Slot 512-43
Little Rock, AR 72202

http://www.arpediatrics.org/research/biostatistics



On Mon, Aug 16, 2010 at 10:27 PM, Debs Majumdar <debs_stata@yahoo.com> wrote:
> Hi,
>
>  I have a dataset of around 1000 people where 750 are whites and 250 are
> non-whites. I have variables for age (35-75), education (0-20) and gender (0 or
> 1). Also in the dataset I have item responses to 10 questions for each of these
> 1000 people.
>
>  I would like to create dataset(s) where one white is matched with a non-white
> person in terms of age only, age and education, and age,education and gender.
>
> Initially, I tried matching on age only. But then for some cases I end up with 3
>
> whites and 1 non-white for the same age category. At that time I would like to
> drop any 2 of those 2 at random in the new dataset so that the matching is
> always 1-1. How do I do that?
>
> I have tried using cem, vmatch etc. but didn't get what I want.
>
> Thanks,
>
> -Debs
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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