SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
Expand all | Collapse all

Firth Logistic Regression Analysis on SPSS version 26

  • 1.  Firth Logistic Regression Analysis on SPSS version 26

    Posted Fri April 17, 2020 01:29 PM
    Hi everyone,

    I hope you can help me with this:

    I have got SPSS v26 on a MacBookPro and Firth Logistic Regression is installed and so it is the R3.5 configuration from the Extension Hub.  But it does not run and the message I receive is as follows:

    The R logistf package is required but could not be loaded.  

    I believe I need to instal R Essentials for SPSS, which provides R logistf; however, I could not find R Essentials for SPSS version 26 and the most recent version is for SPSS v. 24 -they are not compatible.

    I have searched IBM site, CRAN, GitHub, etc without success.

    Any suggestion? Advice? I must be missing something.

    Many thanks in advance,

    Bw,  Eliana

    ------------------------------
    Eliana Reyes
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Fri April 17, 2020 03:03 PM
    You do need to have the R Essentials installed to use FIRTH LOGISTIC, but the error message comes from R code that would not run without it.  There might have been a problem with the installation of the logistf package.  Open a syntax window and run this code.  It might fix things, or at least it will probably give you a more informative error message.

    begin program r.
    install.packages("logistf")
    library(logistf)
    end program.

    ------------------------------
    Jon Peck
    ------------------------------



  • 3.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sat April 18, 2020 04:54 PM
    Dear Jon,

    Thank you for your comment; much appreciated.
    I ran the code and got the same message: Warnings 1 The R logistf package is required but could not be loaded.

    I agree I need R Essentials but I have been unable to find a version that runs with SPSS 26 -the latest version available online runs with SPSS 24 but will not run with v.26.  I believe IBM team would have created an alternative to enable R Essentials for v.24 to work with new versions of SPSS.  

    Any thought? Suggestion?

    Many thanks!

    Eliana

    ------------------------------
    Eliana Reyes
    ------------------------------



  • 4.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sat April 18, 2020 05:52 PM
    The plugins are available here

    and as STATS_R36_CONFIGURATION etc via the Extensions > Extension Hub menu in Statistics.

    --





  • 5.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sun April 19, 2020 07:59 AM
    Thank you once again, Jon, for your kind reply.

    I have done this already and it does not work, but I am going to uninstall extensions, etc and try one more time -maybe something went wrong with previous installations.

    I have just got STATA as back-up, and managed to install the package for Firthlogist last night and got results so I am OK, but I would like to be able to run Firthlogist on SPSS.

    I will come back to the group if this (last attempt) is not successful,

    Thank you so much, Jon, for your valuable support and help with this, 

    Best,

    Eliana

    ------------------------------
    Eliana Reyes
    ------------------------------



  • 6.  RE: Firth Logistic Regression Analysis on SPSS version 26
    Best Answer

    Posted Sun April 19, 2020 10:09 AM
    What happened when you ran the code to install the logistf package?

    begin program r.
    install.packages("logistf")
    end program.

    --





  • 7.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sun April 19, 2020 02:44 PM
    I have got the same message:

    "The R logistf package is required but could not be loaded"

    ?


    ------------------------------
    Eliana Reyes
    ------------------------------



  • 8.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sun April 19, 2020 03:56 PM
    But what happened when you ran the install.packages code?  Did it install logistf?  
    If you run
    Begin program r.
    library(logistf)
    end program.

    Do you get more failure information?
    --





  • 9.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Sun April 19, 2020 06:21 PM
    Nothing more than the same warning message, which I agree it is a bit odd

    ------------------------------
    Eliana Reyes
    ------------------------------



  • 10.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Tue May 05, 2020 09:36 AM
    I was having issues with firth myself a few months ago, and quite honestly It ended up being easier to just use R (logistf package).

    ------------------------------
    Lor Chuch
    ------------------------------



  • 11.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Wed September 18, 2024 09:49 AM

    Hi, I am having the same problem while trying to instal the r-plugin using SPSS 27, R 3.6.0. and the STAT_R36 extension.



    ------------------------------
    Anne Sonley
    ------------------------------



  • 12.  RE: Firth Logistic Regression Analysis on SPSS version 26

    Posted Wed September 18, 2024 10:28 AM
    I am puzzled by this.  Installing the plugin would not normally attempt to install logistf.  That would happen when installing FIRTHLOG.  Assuming that's what you were doing but it just doesn't show, did you try the STATS PACKAGE INSTALL method to install logistf?  If not, please try that.  If it fails, there may be more information about the cause, so post that output.

    --