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

How to instal R MASS extension?

  • 1.  How to instal R MASS extension?

    Posted Mon June 21, 2021 01:57 PM
    Hello,

    I am trying to do a robust regression on SPSS. I already downloaded the needed version of R and R MASS. I also linked SPSS to R folder. However, although Robust regression option appears available in SPSS (I can select variables, etc.), it does not work when I click to "Ok".

    I believe the error must be in the R MASS package. I downloaded the package and extracted it to R folder. I don't know if I'm missing some step.

    Thank you!

    Laura.






    #SPSSStatistics
    #Support
    #SupportMigration


  • 2.  RE: How to instal R MASS extension?

    Posted Mon June 21, 2021 04:37 PM

    Normally, any R libraries needed by an extension command are installed when you install the extension. If a library such as MASS is not found, you should get an error message to that effect. What output did you see when you say it did not work?

    If the package is missing - it might have been blocked by a firewall or for other reasons, you can install it from within Statistics, which will make sure that it goes in the right R library. Run this code from a syntax window.

    begin program r.

    install.packages("MASS")

    end program.

    You should start Statistics as Administrator before you run this code to reduce the chance that the OS is blocking the install.






    #SPSSStatistics
    #Support
    #SupportMigration