Bookmark and Share

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: psmatch more then one neighbour


From   Jörg Eulenberger <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: psmatch more then one neighbour
Date   Thu, 11 Nov 2010 13:02:51 +0100


Dear Statalisters,
i want to create a control group for an Treatment group.

this Syntax make nearly what i want. But is it possible to match 2 Neighbours to each person from the treatment group (1:2)?

************
pscore treatment  x1  x2, pscore(p) blockid(blockf1) comsup level(0.001)
set seed 1000
gen x = uniform()
sort x
psmatch2 treatment, pscore(p) neighbor(1) ate noreplace caliper (.01)
sort _id
gen match = id[_n1]
gen treat = id if _nn == 1
drop if treat == .
tab treatment
**************
Thanks, Jörg

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index