SPSS Statistics

SPSS Statistics

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

 View Only
  • 1.  How to work with WRS2 package in SPSS 29?

    Posted Mon July 31, 2023 04:27 PM

    Hello everyone,

    I work with the book "Discovering statistics using IBM SPSS Statistics" (5th edition) by Andy Field. Perhaps some of you know it. However, there is a description on how to install the WRS2 package via syntax to be able to run robust one-way independent ANOVA. Unfortunately, this description does not work for SPSS version 29 (version 25 is used in the book). I have the R package activated. 

    Does anyone know how to work with the Wilcox' WRS package in SPSS 29 or is there another method in this version on how to run robust one-way independent ANOVA?

    Thanks in advance,

    Kristina



    ------------------------------
    Kristina Brahmstaedt
    ------------------------------


  • 2.  RE: How to work with WRS2 package in SPSS 29?

    Posted Mon July 31, 2023 05:13 PM
    I'm not sure what you mean by having the package activated.  If it isn't already installed, you can add it using the STATS PACKAGE INSTALL extension command.  You might have to install that first from the Extensions > Extension Hub menu or run syntax like this.
    STATS PACKAGE INSTALL  R=WRS2.

    Once it is installed, though, you would have to write the little R BEGIN/END PROGRAM block to use that module.  If you look at the code for any of the R-based extension commands, you can see that that can be hundreds of lines of R code, but a bare bones program might only need to use the
    spssdata.GetDataFromSPSS api and the code specific to that module to run the procedure and display the results.

    --





  • 3.  RE: How to work with WRS2 package in SPSS 29?

    Posted Fri August 04, 2023 08:50 AM

    Hi Jon,

    thanks for your answer. I still don't quite understand how to install the WRS2 package. I have installed the R packages via the extensions hub. There does not seem to be a WRS2 extension to install or a Stats Package Install. To start the installation via syntax with  

    R BEGIN.

    STATS PACKAGE INSTALL R=WRS2

    END PROGRAM.

    or just STATS PACKAGE INSTALL R=WRS2. does not work.

    Can you give me a helping hand?

    Best,

    Kristina



    ------------------------------
    Kristina Brahmstaedt
    ------------------------------



  • 4.  RE: How to work with WRS2 package in SPSS 29?

    Posted Fri August 04, 2023 09:14 AM
    STATS PACKAGE INSTALL is an extension command, so you use it like regular syntax.  Don't enclose it in a BEGIN/END PROGRAM block.

    If you are saying that just running STATS PACKAGE INSTALL like a regular command doesn't work, I need more information.  What happens when you run it?  What do you see?  When I ran it, the package installed without a problem.

    --





  • 5.  RE: How to work with WRS2 package in SPSS 29?

    Posted Fri August 25, 2023 10:59 AM

    Hi, I use the same textbook. I'm trying to use Esssentials for R and the WRS2 package with SPSS 28. But I don't believe it works.
    This is what is displayed:

    Thanks in advance, 



    ------------------------------
    Guillaume Simon
    ------------------------------



  • 6.  RE: How to work with WRS2 package in SPSS 29?

    Posted Fri August 25, 2023 11:58 AM
    It looks to me like the package install worked.  The warning about sources being newer is generally harmless and only means that there might be a newer version in source form than the binaries.  Compiling the binaries on your system would require a compiler and possibly some R development packages that you probably don't have installed.

    I don't see anything that suggests that you tried to run the WRS2 package after installing it.

    --





  • 7.  RE: How to work with WRS2 package in SPSS 29?

    Posted Mon September 11, 2023 10:29 AM

    Hello, I use the same textbook by Andy Fields as well, I am also having the same issue, there is a description in the book on how to install the WRS2 package via syntax to be able to run robust one-way independent ANOVA. Unfortunately, this description does not work for SPSS version 29 (version 24 is used in the book).

    I noticed that with the SPSS package I bought it came with the packages for Python as well as R but it says I cannot use it because I only have the Mac OS 10.13.6, but it says i need Mac OS 10.14 which is currently not out yet. Therefore, I followed the steps and downloaded the R-3.2.4.pkg file from the https://www.r-project.org/ website through the CRAN link. Then I tried to run the WRS2 package via the syntax, but it keeps giving me error messages. 

    The first way I was running it was like this (the way the book explains on how to do it):

    BEGIN PROGRAM R.

    install.packages("WRS2")

    END PROGRAM. 

    But it did not work so I tried to do it the way that Mr. Jon Peck said to:

    STATS PACKAGE INSTALL R=WRS2. 

    After that I got this message: 

    I'm not really sure what the issue is, if someone can please help me I would appreciate it.
    Thanks so much.
    Destiny


    ------------------------------
    Destiny Ramos
    ------------------------------



  • 8.  RE: How to work with WRS2 package in SPSS 29?

    Posted Mon September 11, 2023 10:46 AM
    First, are you sure that the install actually failed?  Try this code.
    begin program r.
    library(WRS2)
    end program.

    If WRS2 is installed, you might be okay.

    However, if you need X11 support, Apple stopped distributing this some time ago, and you would need to install quartz or XQuartz first.  I'm not a Mac user, but I found these instructions for this.  "here" is
    https://github.com/XQuartz/XQuartz/releases/download/XQuartz-2.8.5/XQuartz-2.8.5.pkg
    Configuring your Mac for X11
    1. Download XQuartz here.
    2. Open the . dmg file and run the . ...
    3. Click "Continue" three times.
    4. Agree to the License Agreement.
    5. Click "Install". ...
    6. Once you see the "Installation Complete" screen you can close the installer.
    7. XQuartz is now installed on your computer. ...
    8. Open XQuartz.

    Also, there is a nonparametric ANOVA extension, STATS QUADE ANCOVA, available via 
    Extensions > Extension Hub that is implemented in Python and might suit your needs.

    --