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


From   "Radwin, David" <[email protected]>
To   <[email protected]>
Subject   st: RE: Stata Select Subsample by matched controls ids
Date   Mon, 22 Jul 2013 18:40:24 -0400

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: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Joseph Kwan
> Sent: Monday, July 22, 2013 8:56 AM
> To: [email protected]
> 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index