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.  Supressing Stat testing results from custom tables

    Posted 01/22/25 01:56 PM

    Is there an easy way to suppress stat testing if the sample size per cell falls below 30. I look at options both under Edit>Options and also under the custom tables Stat test tab but did not find a way to do this. 



    ------------------------------
    Ratna Wynn
    ------------------------------


  • 2.  RE: Supressing Stat testing results from custom tables

    Posted 01/23/25 12:21 PM
    Do you mean to omit particular cells from the proportion or means tests?  There is no way to do that, and if you could, it would bias the results as the test sample input to the test would depend on the cells being tested.

    If you mean to suppress the test results for the whole table, that could be done with some custom Python code, but if you have the test results in a separate table,  you could just ignore them when appropriate.


    --





  • 3.  RE: Supressing Stat testing results from custom tables

    Posted 01/23/25 03:33 PM

    I am looking to suppress the test results for only those cells where the base size is less than 30. I tried to use the modify table function and would be ok if it just changed to red font the stat results where the base is small. The code I tried is below. But it did not seem to work.

    SPSSINC MODIFY TABLES subtype="'Custom Table'"
    SELECT='A' 'B' 'C' 
    REGEXP=YES DIMENSION=COLUMNS LEVEL = 0  SIGCELLS=ALLSIG SIGLEVELS=BOTH 
    PROCESS = ALL HIDE=NO 
    /STYLES  APPLYTO="'Count' <30"
    TEXTCOLOR=239 51 56  
    USEABS=NO HMSCALE=LINEAR.



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 4.  RE: Supressing Stat testing results from custom tables

    Posted 01/23/25 04:11 PM
    That's not quite right, but a better solution would be SPSSINC CENSOR TABLES (Utilities > Censor Table) if you have the cell count in the table.  You give it the censoring criterion row or column, the test value, the type of test (<),  and the rows or columns to censor.relative to the censoring criterion cell.  That will blank it out or substitute some symbol of your choice.

    CENSOR TABLES is on the Extension Hub if you don't already have it.


    --





  • 5.  RE: Supressing Stat testing results from custom tables

    Posted 01/23/25 08:34 PM

    I tried it but think I not sure what the right "censor label" should be. I want it to not show the stat testing only. I used this syntax but it did not work.  Thanks in Advance.

    SPSSINC CENSOR TABLES
    CRITLABEL="Significance Testing" TESTTYPE="<" CRITVALUE=30
    DIRECTION=ROW NEIGHBORS=0 LABELOFFSET=0
    SUBTYPE="'Custom Table'" PROCESS=PRECEDING
    /OPTIONS APPENDCAPTION=YES CONDITIONALCAPTION=NO
    SYMBOL="**".



    ------------------------------
    Ratna Wynn
    ------------------------------



  • 6.  RE: Supressing Stat testing results from custom tables

    Posted 01/23/25 09:14 PM
    Can you send me an spv file with the table in it?  (jkpeck@gmail.com)


    --





  • 7.  RE: Supressing Stat testing results from custom tables

    Posted 01/24/25 08:47 AM

    Hi Jon - of course. I tried to attach but it says that it is not a supported file. I will email it to you. The bolded cell - the stat testing should not show as the valid N for that cell is 26. 



    ------------------------------
    Ratna Wynn
    ------------------------------