SPSS Statistics

 View Only
  • 1.  How to delete columns/rows in a custom table which don't meet specified criteria?

    Posted Wed July 20, 2022 07:07 AM
    Hello. I'm preparing CTABLES with many divisions both in columns and rows so I need to make tabulations more readable, clear. I would like to delete rows/columns with base less than 30. Since version 27 it's become possible to hide data based on condition using OUTPUT MODIFY. However, when I export those tables to Excel these data still appear and are hidden in rows/columns. Is there any way to totally delete them (via commands, Python extension etc.)?

    ------------------------------
    Konrad Gałuszko
    ------------------------------

    #SPSSStatistics


  • 2.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    IBM Champion
    Posted Wed July 20, 2022 08:35 AM
    I can't be sure that this works in older versions of Statistics, but this code using SPSSINC MODIFY TABLES hides selected rows, and they do not appear in the Excel file.

    SPSSINC MODIFY TABLES subtype="customtable"
    SELECT="f"
    DIMENSION= ROWS LEVEL = -1
    PROCESS = PRECEDING HIDE=TRUE
    /STYLES  APPLYTO=BOTH.

    The SELECT condition could be a list of row labels, each quoted.

    --





  • 3.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    Posted Wed July 20, 2022 08:39 AM
    Edited by System Fri January 20, 2023 04:27 PM
    Thanks Jon. Will deleting option (in OUTPUT MODIFY) appear in further versions of Statistics?

    ------------------------------
    Konrad Gałuszko
    ------------------------------



  • 4.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    IBM Champion
    Posted Wed July 20, 2022 08:49 AM
    I have no information on that, but the export already excludes hidden parts.

    --





  • 5.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    Posted Wed July 20, 2022 09:03 AM
    I'm asking about option to not include hidden rows/columns in Excel output. Now, when I run OUTPUT MODIFY data still exist in Excel but are hidden (which is unconvenient while, for example, copying).

    ------------------------------
    Konrad Gałuszko
    ------------------------------



  • 6.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    IBM Champion
    Posted Wed July 20, 2022 10:48 AM
    What version of Statistics are you using.  That behavior of including the hidden parts but hiding them in Excel was changed several releases ago, though I don't remember the exact version.

    --





  • 7.  RE: How to delete columns/rows in a custom table which don't meet specified criteria?

    Posted Thu July 21, 2022 05:42 AM
    28.0.1.0 (142)

    ------------------------------
    Konrad Gałuszko
    ------------------------------