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.  Python error from STATS CLUS SIL

    Posted 01/09/23 09:56 AM
    I am trying to use the silhouette cluster analysis method like so:

    STATS CLUS SIL CLUSTER=QCL_1 VARIABLES=V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18
    V19 V20 V21 V22 V23 V24 V25 V26 V27 V28 V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 V39 V40 V41 V42 V43
    V44 V45 V46 V47 V48 V49 V50 V51 V52 V53 V54 V55 V56 V57 V58 V59 V60 V61 V62 V63 V64 V65 V66 V67 V68
    V69 V70 V71 V72 V73 V74 V75 V76 V77 V78 V79 V80 V81 V82 V83 V84 V85 V86 V87 V88 V89 V90 V91 V92 V93
    V94 V95 V96 V97 V98 V99 V100
    NEXTBEST=nbc SILHOUETTE=sil DISSIMILARITY=EUCLID MINKOWSKIPOWER=2
    /OPTIONS MISSING=IGNORE RENUMBERORDINAL=NO
    /OUTPUT HISTOGRAM=YES ORIENTATION=HORIZONTAL THREEDBAR=YES THREEDCOUNTS=NO.

    When I run this i get the following error:

    '>'; not supported between instances of 'float' and 'None Type'

    I searched this error and find that it is issued by Python. This says to fix "figure out where the None value comes from and correct the assignment" but I don't think that is something I can do in SPSS. How to solve this error? 




    ------------------------------
    Steve Corman
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Python error from STATS CLUS SIL

    Posted 01/09/23 10:05 AM
    I responded to this post on the Reddit thread.  This error was introduced in the Python 3 conversion and was fixed in an update on the Extension Hub posted on 12/1/2022.  Install that version, and the problem will be gone.

    --





  • 3.  RE: Python error from STATS CLUS SIL

    Posted 01/09/23 11:05 AM
    I responded to this post on the Reddit thread.  This error was introduced in the Python 3 conversion and was fixed in an update on the Extension Hub posted on 12/1/2022.  Install that version, and the problem will be gone.

    --