IBM Support

PI73899: UNABLE TO RUN EQUATION SYSTEMS STATS EQNSYSTEM BUNDLE, ERROR ABOUT MISSING R PACKAGES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as Vendor Solution.

Error description

  • You work with IBM SPSS Statistics 24 plus Fixpack 1 installed as
    64 bit application on 64 bit Windows 7 operating system.
    IBM SPSS Essentials for R 24 64 bit installed and R for Windows
    3.2.1 installed as well (also R for Windows 3.1.0 is installed
    on the same machine)
    
    Launch release 24 FP1 with any file, for example Employee
    data.sav.
    Next, click Analyze > Regression > Equation Systems dialog
    
    Use any variables for the required fields, just as a test, e.g.
    months to dependent variable 1, salbegin as regressor for
    equation 1, salary as dependent variable 2, jobtime as regressor
    for equation 2. As equation 1 name you use a and b for the
    second equation name. You paste the syntax.
    
    The pasted syntax is:
    
    DATASET ACTIVATE DataSet1.
    STATS EQNSYSTEM a: prevexp = salbegin b: salary = jobtime
    /OPTIONS METHOD=THREESLS COVMETHOD=GEOMEAN MAXITER=1 TOL=.00001
    /PRINT RESIDCOV=NO RESIDCOR=NO
    /SAVE RESIDUALS ID=id.
    (attached as R.sps)
    
    Run the syntax and see what you get.
    
    *************************
    Current behavior:
    
    The analysis is not performed.
    
    On output viewer you get below errors:
    
    GET
      FILE='C:\Program
    Files\IBM\SPSS\Statistics\24\Samples\English\Employee data.sav'.
    DATASET NAME DataSet1 WINDOW=FRONT.
    DATASET ACTIVATE DataSet1.
    STATS EQNSYSTEM a: prevexp = salbegin b: salary = jobtime
    /OPTIONS METHOD=THREESLS COVMETHOD=GEOMEAN MAXITER=1 TOL=.00001
    /PRINT RESIDCOV=NO RESIDCOR=NO
    /SAVE RESIDUALS ID=id.
    Loading required package: Matrix
    Loading required package: car
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()),
    versionCheck = vI[[j]]) :
      there is no package called 'pbkrtest'
    In addition: Warning messages:
    1: package 'systemfit' was built under R version 3.2.5
    2: package 'car' was built under R version 3.2.5
    
    Warnings
    The R systemfit package is required but could not be loaded.
    
     Why is this?
    When you look at C:\Program Files\R\R-3.2.1\library you do see
    car and systemfit package
    As this extension bundle is pre-installed with SPSS 24 why it is
    not running?
    
    This issue was reported to IBM SPSS development.
    

Local fix

  • This issue is not caused by SPSS code. It is a third party R
    issue.
    The reason why you get this message is that the "pbkrtest"
    package  was upgraded to version 0.4-6 on R website.
    This latest version of "pbkrtest" requires R version R.3.2.5.
    
    So you need to install R version 3.2.5 AND you need to reinstall
    the IBM R Essentials for SPSS 24.
    If you do not reinstall the R Essentials as well it cannot work
    because then the  R Essentials still work with previous R
    version.
    You can confirm with following syntax in Statistics client:
    BEGIN PROGRAM R.
    R.version.string
    END PROGRAM.
    
    Steps to perform:
    
    1. Uninstall the R Essentials for Statistics 24 FP1.
    2. Download R 3.2.5 from R web site, and install it.
    R version 3.2.5 is available from http://www.r-project.org/. You
    can also download it directly from
    ftp://ftp.stat.math.ethz.ch/Software/CRAN/bin/windows/base/old/.
    3. Reinstall the R Essentials for 24 FP1, and select R 3.2.5 as
    R home folder upon installation of the Essentials.
    
    If your machine can access internet, the "pbkrtest" package will
    be installed during the R Essentials setup.
    
    After that run below dummy syntax to test if the bundle runs
    now. Please note the syntax is only for test but the veriables
    in use are not proper for a valid analysis. But if you performed
    above steps the below syntax wikll then produce Equation System
    output.
    
    GET   FILE='C:\Program
    Files\IBM\SPSS\Statistics\24\Samples\English\Employee data.sav'.
    
    STATS EQNSYSTEM a: salary = gender b: salbegin = prevexp
    /INSTRUMENTS VARIABLES=minority
    /OPTIONS METHOD=THREESLS COVMETHOD=GEOMEAN MAXITER=1 TOL=.00001
    /PRINT RESIDCOV=NO RESIDCOR=NO
    /SAVE RESIDUALS ID=id.
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • This issue is not caused by SPSS code. It is a third party R
    issue.
    The reason why you get this message is that the "pbkrtest"
    package  was upgraded to version 0.4-6 on R website.
    This latest version of "pbkrtest" requires R version R.3.2.5.
    
    So you need to install R version 3.2.5 AND you need to reinstall
    the IBM R Essentials for SPSS 24.
    If you do not reinstall the R Essentials as well it cannot work
    because then the  R Essentials still work with previous R
    version.
    You can confirm with following syntax in Statistics client:
    BEGIN PROGRAM R.
    R.version.string
    END PROGRAM.
    
    Steps to perform:
    
    1. Uninstall the R Essentials for Statistics 24 FP1.
    2. Download R 3.2.5 from R web site, and install it.
    R version 3.2.5 is available from http://www.r-project.org/. You
    can also download it directly from
    ftp://ftp.stat.math.ethz.ch/Software/CRAN/bin/windows/base/old/.
    3. Reinstall the R Essentials for 24 FP1, and select R 3.2.5 as
    R home folder upon installation of the Essentials.
    
    If your machine can access internet, the "pbkrtest" package will
    be installed during the R Essentials setup.
    
    After that run below dummy syntax to test if the bundle runs
    now. Please note the syntax is only for test but the veriables
    in use are not proper for a valid analysis. But if you performed
    above steps the below syntax wikll then produce Equation System
    output.
    
    GET   FILE='C:\Program
    Files\IBM\SPSS\Statistics\24\Samples\English\Employee data.sav'.
    
    STATS EQNSYSTEM a: salary = gender b: salbegin = prevexp
    /INSTRUMENTS VARIABLES=minority
    /OPTIONS METHOD=THREESLS COVMETHOD=GEOMEAN MAXITER=1 TOL=.00001
    /PRINT RESIDCOV=NO RESIDCOR=NO
    /SAVE RESIDUALS ID=id.
    

APAR Information

  • APAR number

    PI73899

  • Reported component name

    SPSS STATISTICS

  • Reported component ID

    5725A54ST

  • Reported release

    O00

  • Status

    CLOSED ISV

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-12-16

  • Closed date

    2016-12-22

  • Last modified date

    2016-12-22

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCQ88K","label":"Statistics Desktop"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"O00","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
22 December 2016