SPSS Statistics

 View Only

 How to install the PS Matching in SPSS?

Enke Baldini's profile image
Enke Baldini posted Thu April 24, 2025 09:31 AM

Hi everyone,

I have installed the STATS R3.6 Configuration in my SPSS version 27.

I also installed R 3.6.0, which should be compatible with this extension. However, when I try to install PS Matching 3.04 I get a warning message saying that PS Matching does not have a valid syntax template.

Could someone help me solve the problem?

Thanks,

E.

Jon Peck's profile image
Jon Peck IBM Champion

I see that PS Matching was last updated in 2016 and is not maintained anymore by its developers (it is not from IBM).  One thing that you could try is to open it with Extensions > Custom Dialog Editor, and accept the prompt to convert it to the newer SPSS dialog format.  Then resave and try to install that.  I don't know whether that will work, however.  There might be a problem with the syntax definition portion.

Alternatively, there are two propensity score matching procedures in SPSS that might suffice.  STATS PSM uses a logistic regression for the matching, and FUZZY uses a bounding box.  If you want to try this, install FUZZY and STATS PSM via Extensions > Extension Hub.  There is an older custom dialog for Propensity Score Matching that you should remove first via File > Uninstall in the Custom Dialog Builder.

p.s. These procedures are implemented in Python, not R.  They are both marked as working as far back as SPSS V27.

Enke Baldini's profile image
Enke Baldini

Hi Jon,

thank you for your quick reply. I opened the Custom Dialog Editor and I clicked on Convert. Then, I can open the extension PS Matching from the download, but when I click on install the problem persists. FUZZY ans STATS PSM are already present among the extensions, and now I've uninstalled STATS_PSM. However, I don't know how to move forward. All I could understand, watching and reading tutorials, is that by logistic regression I can create a new variable expressing the probability of predicted values, but I don't know how to use it for PSM purposes.

Jon Peck's profile image
Jon Peck IBM Champion

First, STATS PSM is the newer extension command.  Its predecessor was only a custom dialog, so you do need to install STATS PSM.  And install or update FUZZY as that is the engine used by both procedures.  FUZZY was updated some time ago but after V27 to make better matches, so you will want that one.  If you just installed FUZZY, though, you have the latest vesion.

Then, use Data > Propensity Score Matching to do the logistic regression and the matching.  Since you might still have the older PSM dialog box, use the Paste button to make sure that you are using the newer command.  If the syntax doesn't start with STATS PSM, you have the old one, but both are probably on the Data menu.