SPSS Statistics

 View Only
  • 1.  Highlight cells with significance

    Posted Tue March 15, 2022 11:26 AM
    Hi,

    I am looking for a way to highlight cells (or give cells a different background color) which are significant (marked with A,B,C,D,E and so on).

    So far I cannot figure out how to do this and I hope it can be done because it makes it more uncluttered for the client to read the table.

    I attached a .sav and .spss syntax file with which you can run our tables. Also attache an output file .spv  and an .jpg image file in which I clarify what the intention is.


    ------------------------------
    Michel de Graaf
    ------------------------------

    #SPSSStatistics

    Attachment(s)

    7z
    spssexample.7z   38 KB 1 version


  • 2.  RE: Highlight cells with significance

    Posted Tue March 15, 2022 11:28 AM
    Hi. Check the OUTPUT MODIFY command. That will highlight cells in the output if you want.

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: Highlight cells with significance

    Posted Tue March 15, 2022 11:42 AM
    Hi,

    I tried this. But strange enought only the last table is highlighted and not the tables at the beginning.

    This is my table macro syntax:

    DEFINE singresp (!POS !CHAREND('/')).
    !DO !i !IN ( !1).
    CTABLES
    /VLABELS VARIABLES=ALL DISPLAY=DEFAULT
    /TABLE !i [C] BY totaal [C][COUNT 'Abs' F40.0, COLPCT.COUNT '%' PCT40.1]
    + kruisa [C][COUNT 'Abs' F40.0, COLPCT.COUNT '%' PCT40.1]
    + kruisb [C][COUNT 'Abs' F40.0, COLPCT.COUNT '%' PCT40.1]
    /SLABELS POSITION=ROW
    /CATEGORIES VARIABLES=!i ORDER=A KEY=VALUE EMPTY=EXCLUDE TOTAL=YES POSITION=AFTER MISSING=EXCLUDE
    /CATEGORIES VARIABLES=totaal kruisa kruisb
    ORDER=A KEY=VALUE EMPTY=INCLUDE
    /CRITERIA CILEVEL=95
    /COMPARETEST TYPE=PROP ALPHA=0.05 ADJUST=BONFERRONI ORIGIN=COLUMN INCLUDEMRSETS=YES
    CATEGORIES=ALLVISIBLE MERGE=YES STYLE=SIMPLE SHOWSIG=NO
    /TITLES
    TITLE="test"
    CAPTION='2022'.
    !DOEND.
    !ENDDEFINE.

    And the I run for example 3 tables:


    singresp $A10mr A11 A8/.

    And the I run this:

    SPSSINC MODIFY TABLES subtype="customtable"SELECT="<<ALL>>"
    DIMENSION= COLUMNS LEVEL = -1 SIGCELLS=ALLSIG SIGLEVELS=BOTH
    PROCESS = PRECEDING
    /STYLES APPLYTO=DATACELLS
    BACKGROUNDCOLOR=255 255 0.

    And the only the table from A8 is highlighted and not $A10mr and A11.

    I already tried this:

    singresp $A10mr/.
    singresp A11/.
    singresp A8/.

    But then alos A8 is the only table that is getting highlighted.

    ------------------------------
    Michel de Graaf
    ------------------------------



  • 4.  RE: Highlight cells with significance

    Posted Tue March 15, 2022 11:43 AM
    There is a syntax control to select all output or only the last. Let me look that up.

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 5.  RE: Highlight cells with significance
    Best Answer

    Posted Tue March 15, 2022 11:47 AM
    You have PROCESS = PRECEDING
    Use PROCESS=ALL to do all tables of the specified type(s).

    --





  • 6.  RE: Highlight cells with significance

    Posted Tue March 15, 2022 11:51 AM
    Thank you! That causes the problem.

    ------------------------------
    Michel de Graaf
    ------------------------------



  • 7.  RE: Highlight cells with significance

    Posted Tue March 15, 2022 11:45 AM
    I don't think OUTPUT MODIFY can do that, but the SPSSINC MODIFY TABLES extension command can.  You can  specify the details of significance selection in the Significance subdialog and then apply whatever formatting you want in the Actions subdialog.

    You can install this command from the Extensions > Extension Hub menu if you don't already have it.  It will appear as Utilities > Modify table appearance.

    image.png

    --