ASA Connect

 View Only
  • 1.  Genetic Matching

    Posted 04-26-2016 23:40

    Is there anyone know how I can output the matched dataset from the Matching R package for genetic mathing ? 

    Thank you so so much ! 

    ------------------------------
    Siqi Chen
    ------------------------------


  • 2.  RE: Genetic Matching

    Posted 04-27-2016 09:22

    There's just one more step you need to do after following the example given in the help page for GenMatch(). If you call the object returned by Match() "mout" as in the example, you can use mout$index.treated and mout$index.control, e.g. rbind(X[mout$index.treated, ], X[mout$index.control, ]) to get the matched dataset.

    ------------------------------
    Lauren Samuels
    PhD candidate, Department of Biostatistics
    Vanderbilt University School of Medicine



  • 3.  RE: Genetic Matching

    Posted 04-27-2016 10:28

    Siqi, if you wan to send me your email address, I can send you the code I used to output the matched dataset using the genetic match package that I called from within the MatchIt R package (I don't seem able to paste in my code into the ASA Community web page).

    patrick.rooney@nordstrom.com

    ------------------------------
    Patrick Rooney
    Director, Advanced Analytics
    Nordstrom