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.  CustomTabels

    Posted 06/02/20 11:37 AM

    Hi Group!

    I´m using custom tables to create tables which works beautifully. However, I'm not very knowledge about writing syntax code. I wonder if there´s some way you could save you tabels in the GUI, or import syntax back into the GUI to edited tabels? As it is right now, I need to start from scratch each time If I want to change something in a table.

    Br,

    Johan



    ------------------------------
    Johan Jyrwall
    ------------------------------

    #SPSSStatistics


  • 2.  RE: CustomTabels

    Posted 06/02/20 01:13 PM
    Unfortunately, there is  no way to reverse syntax back into the gui, although, as you probably know, going back to a dialog, including CTABLES, on the same dataset and in the same session does restore the previous contents.

    The CTABLES gui generates syntax that is often more complicated than it needs to be, especially with the /TABLE subcommand, and it generates some unnecessary subcommands that just restate defaults, so you might be able to just write simpler syntax.  E.g.,
    CTABLES
    /TABLE a + b by c > d.
    could be sufficient as long as the variable measurement levels are set correctly.

    Beyond that, the macro facility can be used to construct part or all of a block of syntax that you might want to reuse.  See the DEFINE statement in the Command Syntax Reference for details.  The macro facility, however, is not a model of ease of use.  Python programmability can also be used to generate reusable templates.

    If you want to post an example showing what you would reuse, maybe I can provide more help.

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