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: RE: RE: Stata Select Subsample by matched controls ids


From   Joseph Kwan <JXK180@bham.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Stata Select Subsample by matched controls ids
Date   Mon, 22 Jul 2013 23:03:50 +0000

Dear David,

Thanks so much for your help.
It now becomes a lot clearer.

Regards,

Joseph Kwan
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] on behalf of Radwin, David [dradwin@rti.org]
Sent: Monday, July 22, 2013 11:40 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Stata Select Subsample by matched controls ids

Joseph,

It is not clear to me what you are trying to do. Are you trying to
identify the matched treated units only, the matched control units only,
or both?

Please read the FAQ, which advises you to include sample code and
requests that you identify the authors and source of user-written
programs (-psmatch2- is by Edwin Leuven and Barbara Sianesi and is
available from SSC).

As a guess, you might be trying to select the group identified by the
-if- qualifier in the last line of the example below:

. sysuse nlsw88
(NLSW, 1988 extract)

. psmatch2 union age tenure grade south, outcome(wage) logit common

[output omitted--see
http://www.stata.com/statalist/archive/2013-07/msg00075.html]

. tab _weight _treated, missing

 psmatch2: |
 weight of |
   matched |  psmatch2: Treatment assignment
  controls | Untreated    Treated          . |     Total
-----------+---------------------------------+----------
         1 |       271        457          0 |       728
         2 |        59          0          0 |        59
         3 |        14          0          0 |        14
         4 |         4          0          0 |         4
         5 |         2          0          0 |         2
         . |     1,057          2        380 |     1,439
-----------+---------------------------------+----------
     Total |     1,407        459        380 |     2,246


. tab _treated if _weight < .

  psmatch2: |
  Treatment |
 assignment |      Freq.     Percent        Cum.
------------+-----------------------------------
  Untreated |        350       43.37       43.37
    Treated |        457       56.63      100.00
------------+-----------------------------------
      Total |        807      100.00

David
--
David Radwin
Senior Research Associate
Education Studies Division
RTI International
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-665-8274

www.rti.org


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Joseph Kwan
> Sent: Monday, July 22, 2013 8:56 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Stata Select Subsample by matched controls ids
>
> Stata select ids
>
> I used psmatch2 commands
>
> It generates a list of ids for both the control and treatment
variable.
>
> It also generates a list of ids for which the treatment variable is
> matched with.
>
> I want to select the matched ids so that I can select the observations
for
> which there is a match
>
> I have been spending hours on the computer with no success and I need
some
> help
>
> Thanks


*
*   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/

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