SPSS Statistics

SPSS Statistics

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


#Analytics
#SPSSStatistics
#Analyticstools
 View Only
  • 1.  SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/14/20 10:23 AM

    Hi All,

    I have been trying different methods for the whole day and it doesn’t seem to be working. SPSS stuck on “running STATSFIRTHLOG”. I have SPSS version 26. I downloaded R version 3.5.3 and STAT 35 R configuration. I configured SPSS extension to the R version 3.5.3 location on my computer. I installed logistf as administrator and I can see a logistf folder in the same location of the R version 3.5.3. However when I enter library(logistf) nothing comes up. I do install.packages(“logistf”) again which installs to a different location.

    Hope someone can kindly help. Thanks heaps!






    #SPSSStatistics
    #Support
    #SupportMigration


  • 2.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/14/20 12:54 PM

    To be sure that logistf is installed in the R version you are using, do it this way.

    begin program r.

    install.packages("logistf")

    end program.

    Normallly, if the package is installed, library(package) shows no output.

    But if the package is not installed and you run STATS FIRTHLOG, you should get an error message from the procedure.

    Note: if you are on Mac, you might need to install X Window support that R depends on as Apple stopped doing this by default. In that case you generally don't get any output from the R code, but it should not prevent the procedure from finishing.

    FIRTHLOG can take a long time to run, but make sure about the other issues before we address that.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 3.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/16/20 01:33 PM

    Hi Jon, Thanks for answering. I tried what you said and I ran SPSS for 2hours:

    "STATS R35 CONFIGURATION R_HOME="C:\Program Files\R\R-3.5.3".

    STATS FIRTHLOG DEPENDENT=MdairyM0N1 INDEP=qualificationsrealY1N0

    /OPTIONS FIRTH=YES PPL=YES CONF=95"

    It just say SPSS running STATS FIRTHLOG with CPU at 0% then after 2 hours when I make another command SPSS says "An unknown error has terminated communication with the processor. The SPSS Statistics Processor is unavailable."

    Below is what I did for R:

    "Installing package into ‘C:/Users/rebec/Documents/R/win-library/3.5’

    (as ‘lib’ is unspecified)

    --- Please select a CRAN mirror for use in this session ---

    trying URL 'https://cran.csiro.au/bin/windows/contrib/3.5/logistf_1.23.zip'

    Content type 'application/zip' length 216335 bytes (211 KB)

    downloaded 211 KB

    package ‘logistf’ successfully unpacked and MD5 sums checked

    The downloaded binary packages are in

    C:\Users\rebec\AppData\Local\Temp\RtmpSCXpl0\downloaded_packages"

    Does it matter if SPSS R 3.5 extension is configured to "C:\Program Files\R\R-3.5.3" as home? Not sure how to change the installation address or if that matters?






    #SPSSStatistics
    #Support
    #SupportMigration


  • 4.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/16/20 04:18 PM

    Can you send me the data and the syntax you used? I'll see if I can figure it out.

    Occasionally I have seen logistf hang up due to data conditions, but that would usually leave it consuming a lot of cpu time.

    The installation scenario you reported seems correct.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 5.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/19/20 07:40 AM

    Hi Jon,


    Thanks again for answering. This is the syntax that I used to run firth regression. The reason why I'm using firth is because there's quasi separation of my data where all those with low education did not meet dairy requirements. For the dependent variable dairy it's numeric and scale (other types of variables are "not allowed in the list"). For the independent variable qualifications it's numeric and nominal.


    DATASET ACTIVATE DataSet1.

    STATS FIRTHLOG DEPENDENT=MdairyM0N1 INDEP=qualificationsrealY1N0

    /OPTIONS FIRTH=YES PPL=YES CONF=95

    MAXIT=100 MAXSTEP=5 MAXHS=5 LCONV=.00001 XCONV=.00001.


    Dairy data with 0 for meeting and 1 for not meeting. Aiming to look at the odds of not meeting.

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    0

    0

    0

    0

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1


    Qualifications data with 0 for no post-school qualifications and 1 for yes has post-school qualifications.


    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    0

    0

    0

    0

    1

    1

    0

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    0

    1






    #SPSSStatistics
    #Support
    #SupportMigration


  • 6.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/19/20 01:01 PM

    Can you email me (jkpeckSupport Member) a sav file with the data? The listing above doesn't show the data properly.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 7.  RE: SPSS stuck on “running STATSFIRTHLOG”

    Posted 08/19/20 05:09 PM

    Hi Jon,


    Thanks heaps! I sent the data to your email.

    dairy with qualifications

    seafood with mealpreparation

    fruit with mealpreparation


    Best regards,

    Rebecca






    #SPSSStatistics
    #Support
    #SupportMigration