SPSS Statistics

 View Only
Expand all | Collapse all

Analysis of differences in medians for multiple subgroups

  • 1.  Analysis of differences in medians for multiple subgroups

    Posted Fri December 18, 2020 06:06 PM

    I have used Custom Tables to display and test for significance of means for many years.  If I want to determine if the mean earnings for minority and non-minority workers, and do this for a dozen subgroups in a data set, I can set it up so that the test will be run within the table and significant differences will be not using APA style with subscripts within the cells.  I can do the same thing for multiple comparisons (example race:  all minority categories compared, pairwise, to White with a Bonferonni correction).  However, I can't do the same thing for median earnings.  I can only do median earnings for a single group at a time and the test strangely does not display the medians of the two groups, only the overall median.  Is there some way around this, or something I am missing in SPSS.  I am using SPSS 27.



    ------------------------------
    Barry Goff
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Analysis of differences in medians for multiple subgroups

    IBM Champion
    Posted Sat December 19, 2020 09:41 AM
    CTABLES does not provide a median test - only means and counts.  You might try NPTESTS, e.g.,

    NPTESTS 
      /INDEPENDENT TEST (salary) GROUP (subgroup) MEDIAN(TESTVALUE=SAMPLE COMPARE=PAIRWISE) .

    --