SPSS Statistics

SPSS Statistics

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

 View Only
  • 1.  Viewing and editing variable formulas

    Posted Tue February 28, 2023 04:50 PM

    How can I view and edit a formula for a variable that I have created?



    ------------------------------
    Robert Cale
    ------------------------------


  • 2.  RE: Viewing and editing variable formulas

    Posted Tue February 28, 2023 04:51 PM

    I'm not sure what you mean.



    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: Viewing and editing variable formulas

    Posted Wed March 01, 2023 08:46 AM

    Once I have created a variable with a formula (using Transform\Compute Variable) and have saved it, I don't see a way to go back and view or modify that formula.

     






  • 4.  RE: Viewing and editing variable formulas

    Posted Wed March 01, 2023 08:48 AM

    Once I have created a variable with a formula (using Transform\Compute Variable) and have saved it, I don't see a way to go back and view or modify that formula.

     






  • 5.  RE: Viewing and editing variable formulas

    Posted Wed March 01, 2023 10:55 AM

    The only ways I can think of would be to save the syntax (e.g., paste the COMPUTE statement if you're using the UI), or create a variable label that contains the formula. As a simple example:

    COMPUTE y = 1/x.

    VARIABLE LABELS y "1/x".



    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------