Propensity_score_matching_using_SAS - Running PSM with...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Running PSM with PSMATCH2 Page 1 Running Propensity Score Matching with STATA/PSMATCH2 (For Workshop Conducted at the School of Social Work, UIUC) Shenyang Guo, Ph.D. School of Social Work, University of North Carolina at Chapel Hill January 28, 2005 STATA Basics The Stata Interface The command window The results window The review window The variable window Two Ways to Run Stata: Interactive mode Do-file Update and Access Data online . update all – update Stata packages (routines created by other users) Example of accessing data online . net search spost . dir *dta . use binlfp2 . sum . tab lfp Abbreviations Any variable names can be abbreviated to the shortest string that uniquely identifies it (e.g., age => ag => a Most common and general command names can be abbreviated: summarize => sum (you use this to get descriptive statistics) tabulate => ta (you use get frequency distribution or cross-tabulation) generate => gen or g (you use this to generate or create new variables) regress => reg (regression analysis) Working Directory The working directory is the default directory for any file operations such as using data, saving data, or logging output. Type cd to see the name of current working directory. Change working direction, you may do: cd “d:\my work” Get Online Help . whelp psmatch2 . help psmatch2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Running PSM with PSMATCH2 Page 2 Stata File Types (Extension Naming Conventions) Most Important Types: .dta Data files in Stata’s format .do Batch files that execute a set of Stata commands .wmf Graphs saved as Window Metafiles .log Output save as plain text by the log using command Other Types .ado Programs that add commands to Stata .class Files that define classes in the Stata class system .gph Graphs saved in Stata’s proprietary format .dlg Programs that define the appearance and functionality of dialog boxes .hlp The text displayed when you use the help command .smcl Output saved in the SMCL format by the log using command Adding Comments Stata treats everything that comes after // or after * as comments that are simply echoed to the output. On any given line, Stata ignores whatever comes after /// and treats the next line as a continuation of the current line. PSMATCH2 There is currently no commercial software package that offers formal procedure for PSM. In SAS, Lori Parsons developed several Macros (e.g., the GREEDY macro does nearest neighbor within caliper matching). In SPSS, Dr. John Painter of Jordan Institute developed a SPSS macro to do similar works as GREEDY ( ). We have investigated several computing packages and found that PSMATCH2 (developed by Edwin Leuven and Barbara Sianesi [2003], as a user-supplied routine in STATA) is the most comprehensive package that allows users to fulfill most tasks for propensity score matching, and the routine is being continuously improved and updated.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/30/2010 for the course HSTA 559 taught by Professor Pruzek during the Spring '07 term at Albany Medical College.

Page1 / 15

Propensity_score_matching_using_SAS - Running PSM with...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online