BookmarkSubscribeRSS Feed
Ashwini_uci
Obsidian | Level 7

Has anyone worked on Propensity score matching? ANy ideas how to go about it? I have never done that before. I use SAS.

Are there any macro programs available to do it?

Any help will be appreciated.

Thanks

4 REPLIES 4
Ashwini_uci
Obsidian | Level 7

I want to use it for cross-sectional/observational type of study

Reeza
Super User

There are a ton of papers on it and some macros if you search the term at lexjansen.com.

I think that the vmatch macro at mayo clinic does a good job, but there are others.

SAS and R: Example 7.35: Propensity score matching

SteveDenham
Jade | Level 19

I would also recommend reading some of Frank Harrell's comments on this in the MedStats Google Group.  My take away was that using covariates was much more powerful and more interpretable than propensity score matching.  One major problem with PS matching is the reduction in sample size ("unmatchable" subjects).

Steve Denham

Ashwini_uci
Obsidian | Level 7

Thanks Reeza!

I looked up the vmatch macro at the mayoclinic site. This is my only second time working on a macro and applying it to the data.

--Would you please try to explain to me the following in a simplified way?

--I am not sure how it is going to match the controls by one or more factors and how each cell indicates the distance.

--Also I am not able to follow how to arrange the data before applying the macro to it.

--Please see below the text from the macro.

In the purpose section of the Vmatch macro, following text appears,

Match cases to controls using variable optimal matching.

  | Replaces OPTIMAL matching option from %MATCH macro.

  | The vmatch macro matches each of N cases with a minimum of "a"  controls to a maximum of "b" controls from a total pool of M controls.

  | The vmatch macro uses the case-control "distance matrix" as input. This matrix has on row per case and on column per potential control. Each

  | cell entry is the distance, Dij, between the i-th case and the j-th  potential control. Output includes the assignments of cases to controls

  | and summaries of the matching efficacy. The "dist" macro can be used to calculate the distance matrix. Controls may be matched to cases by one or more factors(X's). With optimal matching, the control selected for a particular case will be the one closest to the case in terms of distance(Dij), subject to the goal of minimizing the total Dij over all cases.

And under the required parameters, its days following;

REQUIRED PARAMETERS

  | Name : dist

  | Default :

  | Type : Dataset Name

  | Purpose : Name of distance matrix(SAS dataset). Dist must include the case id as the first column and have only M

  | additional columns identifying the M potential controls. The value of the i-th row of the j-th control column is the distance from the i-th case to the j-th potential  control. It is recommended that no other variables be included.

Thanks much!

Ashwini

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2264 views
  • 2 likes
  • 3 in conversation