SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  Transposition or restructure problem

    Posted Mon December 18, 2023 10:08 AM

    I wish to transform the first table (below) into the second table -- a simplified example of a more complex Data file.  I attempted to use syntax select-if the break the file into distinct ethnic and gender groups to no avail. Is this a transposition or restructure problem? Help.

    Raw Enrollment
    School Ethnics Gender Enroll1 Enroll2 Total
    Madison High Hispanic Female 10 15 25
    Madison High Hispanic Male 20 10 30
    Madison High Asian Female 5 7 12
    Madison High Asian Male 5 7 12
    Transformed Enrollment
            Enrollments
    Hispanic Hispanic Asian Asian Total
    School Enrolll1 Enroll2 Enroll1 Enroll2
    (M + F) (M + F) (M + F) (M + F)
    Madison High 30 25 10 14 79


    ------------------------------
    Benjamin Bowser
    ------------------------------


  • 2.  RE: Transposition or restructure problem

    Posted Mon December 18, 2023 10:23 AM
    see CASESTOVARS--