SPSS Statistics

 View Only
  • 1.  Deleting Segments of Multiple Variable Labels

    Posted Tue June 22, 2021 05:41 PM
    When I export a Qualtrics survey to SPSS, the variable labels for the matrix style questions ends up being the question title followed by the statement title--for example (ex: "Rate the degree to which you agree with the following statements. - I often feel a strong connection to nature"). The only part of this label that I want to keep is the second part, the statement. Is there an easier way to delete the question part (Rate the degree to which you agree with the following statements.) than going through and deleting it from every variable label? In other words, can I delete the same segment of text from multiple variable labels and keep the statement part of the variable labels (which will be different for each variable)? Thanks!

    ------------------------------
    Abby
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Deleting Segments of Multiple Variable Labels

    IBM Champion
    Posted Tue June 22, 2021 10:23 PM
    This can be done with a small Python program.  If you want to send me a sav file with the variable dictionary, I can take a look.  (jkpeck@gmail.com).  It might be a few days as I will be out of town for a while

    ------------------------------
    Jon Peck
    ------------------------------



  • 3.  RE: Deleting Segments of Multiple Variable Labels

    Posted Thu June 24, 2021 03:26 PM
    Thank you for this info! I appreciate the offer but I am working with someone else's data and shouldn't share.

    ------------------------------
    Abby Morris
    ------------------------------



  • 4.  RE: Deleting Segments of Multiple Variable Labels

    IBM Champion
    Posted Thu June 24, 2021 03:41 PM
    I don't need the data.  You could delete all the cases so it would just have the variable definitions.  Otherwise just the variable labels as shown in the display dictionary or code book output if that would work for you.






  • 5.  RE: Deleting Segments of Multiple Variable Labels

    Posted Thu June 24, 2021 07:40 AM
    What is the framework you are using?

    ------------------------------
    Shivam Kumar
    ------------------------------