SPSS Statistics

 View Only
  • 1.  How to find syntax used to recreate edited output?

    Posted Wed October 12, 2022 12:24 PM
    Starting with the system generated Frequency syntax, how can I modify this so that I can easily replicate changes that I made in the output editor 

    Is there a way to get the required syntax from the output viewer so that I can easily make the changes to the commands, instead of having to do the changes one by one each time I want to tabulate the data?

    For example: Change from the original 
    FREQUENCIES VARIABLES=QID3
    /BARCHART FREQ
    /ORDER=ANALYSIS.

    to


    ------------------------------
    Gary H
    ------------------------------

    #SPSSStatistics


  • 2.  RE: How to find syntax used to recreate edited output?

    Posted Wed October 12, 2022 12:28 PM
    I'm not sure I understand.

    Perhaps what you want to do is begin with the Frequencies dialog, but paste the syntax into a syntax window. You can run that syntax directly or modify it in any way you want.

    If you need help with the options for the command, put the cursor on the word FREQUENCIES that is pasted and press <F1>. That brings up Help for whatever  command had focus (i.e. , the cursor was on).

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



  • 3.  RE: How to find syntax used to recreate edited output?

    Posted Wed October 12, 2022 01:17 PM

    Ok. I think I might have worded the original post in a confusing manner (sorry still trying to learn SPSS and the vernacular)

     

    I had gotten the Syntax:

    FREQUENCIES VARIABLES=QID3

      /BARCHART FREQ

      /ORDER=ANALYSIS

     

    Which generated a table and bar chart. What I wanted to know is how to modify the Syntax so that the changes that were made in the Output Editor/Chart Editor could be made automatically without me having to make the change every time I want to run the table.

     

    Where  becomes   

    Change Made: Title from "Demographics_Baruch_Role – Selected Choice" becomes "Demographics: Respondent Role"

     

    And

     becomes  
    Changes Made(3) : (1) Title from "Demographics_Baruch_Role – Selected Choice" becomes "Demographics: Respondent Role";

    (2) X Axis Label from "Demographic_Baruch_role – Selected Choice" to "Selected Choice"

    (3) Y Axis Label from "Frequency" to "Number of Resp."

     

    Thanks

     

    Gary H






  • 4.  RE: How to find syntax used to recreate edited output?

    Posted Wed October 12, 2022 01:29 PM
    I understand now, Gary, thank you.

    The short answer is "No, we have nothing that will directly do that."

    In terms specific to your example, however, the ChartBuilder (Graph > ChartBuilder) can be used to create the bar chart, rather than FREQUENCIES; the advantage there is that you can paste its syntax as well, and edit that to change the titles in the pasted GPL. At this point, that's all I can recommend.

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



  • 5.  RE: How to find syntax used to recreate edited output?

    Posted Wed October 12, 2022 02:04 PM
    Well, actually we do, somewhat.  First, many titles are based on variable labels, so if you change the label in the dataset before running the command, you will usually get the label you want.

    Second, if you have not pasted the syntax, you can get it from the journal file or the Notes table of the procedure.  To find the journal file, do Edit > Options > File Locations.  Make sure that the "Record syntax in the journal is checked".

    For the Notes table, in Edit > Options > Viewer, the Display Commands in the Log box must be checked.

    It's also possible to change titles with some extension command syntax, but I won't go there right now.

    --