SPSS Statistics

 View Only
Expand all | Collapse all

Propensity Score Matching errors

  • 1.  Propensity Score Matching errors

    Posted Wed September 28, 2022 02:23 AM

    I am attempting to run Propensity Score Matching in version 29. I also attempted in version 27, but got the same errors. I have downloaded the required extensions from the extension hub. When I input the various elements, I get the following warning and error:

    >Warning # 6894. Command name: BEGIN PROGRAM

    >The external program exited unexpectedly and lost its content, a new external

    >program will startup to execute the rest of job.

    >Error # 6887. Command name: BEGIN PROGRAM

    >External program failed during initialization.

    >Execution of this command stops.

    Additional error message: create startx process is failure.

    Is there a missing extension file, are they not working properly, or do I maybe need to format a data in a specific way?

    I have two Data>Propensity Score Matching options and tried both of them, but got the same errors on both.

    Thanks for any help,

    Deborah Pfortmiller






    #SPSSStatistics
    #Support
    #SupportMigration


  • 2.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 02:41 AM

    That error suggests a problem with the Statistics installation, but if it happened with V27, that would be weird.

    You say you have two PSM options. From the error message, I suspect that you are using the old PSM dialog box. That has been replaced with the STATS PSM extension command, so if you have not installed that one from the Extension Hub, please try that. Its dialog box is supposed to replace the old one, but there was a report that the old one was not removed by installing the new one on at least one Mac computer (it works correctly for me). The new dialog looks different, but if you are not sure, Paste the syntax generated and see whether it pastes the STATS PSM command. If not, that is the old one.

    If you still get errors, run this code in a syntax window just as a test whether the Python extension mechanism is working.

    BEGIN PROGRAM PYTHON3.

    print("hello")

    end program.

    Select all these lines and run.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 3.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 02:46 AM

    The syntax has the STATS PSM command.

    I ran the PYTHON3 command and got the same error messages.

    Are there other PYTHON extensions I need to install?






    #SPSSStatistics
    #Support
    #SupportMigration


  • 4.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 02:50 AM

    STATS PSM uses the FUZZY extension, but that is installed with STATS PSM.

    I'm not clear whether the latest error message is from running that BEGIN PROGRAM PYTHON3 block of code. If so, that would confirm that there is a basic problem with the Python extension connection that has nothing to do with this particular extension.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 5.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 02:58 AM

    This is the syntax I'm running:

    STATS PSM GROUP = WC BY = Age BMI Gender Preop_NP Preop_AP Preop_NDI PROPENSITY=PM

    FUZZ=1.0 NEWDEMANDERIDVAR=Match SUPPLIERID=pt_study

    OUTPUTDS=OutputTest

    /OPTIONS SAMPLEWITHREPLACEMENT=FALSE

    EXACTPRIORITY=TRUE MINIMIZEMEMORY=FALSE

    SHUFFLE=FALSE.

    The Command Log says both errors are in the Begin Program.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 6.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 03:03 AM

    I asked you to run that three line program that does not involve PSM so that we can make sure that the problem is in the general Python connection rather than in STATS PSM. Did you run that?






    #SPSSStatistics
    #Support
    #SupportMigration


  • 7.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 03:05 AM

    Yes, I ran that and got the same 2 error messages






    #SPSSStatistics
    #Support
    #SupportMigration


  • 8.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 03:08 AM

    Ok, then this is not a problem with STATS PSM but rather with the general Python connection with Statistics. I can't take this any farther and will have to leave it to the Technical Support team. Sorry.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 9.  RE: Propensity Score Matching errors

    Posted Wed September 28, 2022 03:09 AM

    Thank you so much for your help! This gives me what I need to talk to the tech support team.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 10.  RE: Propensity Score Matching errors

    Posted Tue January 02, 2024 12:28 PM

    how did you solve your problem with python



    ------------------------------
    Alaa Algazzar
    ------------------------------



  • 11.  RE: Propensity Score Matching errors

    IBM Champion
    Posted Tue January 02, 2024 12:39 PM
    I am the author of these extensions, but I am not aware of any issues like this.  If you are having the same problem and cn send me the data and syntax, I can look into it (jkpeck@gmail.com).  Also, what platform are you using?--