Re: How to highlight the diagonal of pre-post table

Posted by Art Kendall on
URL: http://spssx-discussion.165.s1.nabble.com/How-to-highlight-the-diagonal-of-pre-post-table-tp5740479p5740761.html

The python code stopped working. Perhaps I messed up the spacing or something.
I attaching
a screen snip that shows where the attachment is found
a SAV file
to_show.sav

Screenshot_2021-09-08_142231.jpg

diagonals.py
GET
  FILE='C:\Users\Art\Desktop\XX pieces\to show.sav'.
DATASET NAME DataSet1 WINDOW=FRONT.
CROSSTABS
    /TABLES= P#Members.1 BY P#Members.3
    /CELLS=COUNT.
   SPSSINC MODIFY TABLES subtype="'Crosstabulation'"
    SELECT=0
    DIMENSION= COLUMNS LEVEL = -1
    PROCESS = ALL
    /STYLES  APPLYTO=DATACELLS
    CUSTOMFUNCTION="diagonals.diagonals".
Art Kendall
Social Research Consultants